This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Strange problem - access to directories denied


This *may* not be related to Cygwin, but it seems to be. I've 
installed two programs recently, Cygwin and an NTP daemon (which has 
been uninstalled with no change.) And I know this isn't much to go on 
- I'm hoping it sparks someone.


I have a habit of creating and deleting some commonly used temp 
directories on my system. Occasionally I will delete one (or many) of 
these directories at a DOS prompt (Win2K Pro, SP1, FAT32), but the 
directory (or just one) will not get removed. From then on, I can not 
cd to the dir (bash, sh, or cmd), nor can I open it in Explorer. 
Whenever creating or deleting these directories I only use DOS 
commands - not Cygwin. But since Cygwin was installed most recently I 
have to look at it as a potential source of the issue.


In bash, the directory looks like:

-r-xr-xr-x   1 administ None            0 Mar  6 18:24 pktemp

Strange, it is a directory, yet no 'd'. DOS reports:

03/06/2001  06:24p      <DIR>          pktemp

getfacl:

# file: pktemp
# owner: 1000 (me, "Scott", admin equiv)
# group: 513  (administrators)
user::r-x
group::r-x
other::r-x
mask::r-x

Pertinent strace info: ("rmdir pktemp" in bash as administrator)
("chmod 777 pktemp" yields similar. "chown" to administrator succeeds 
happily)

  1134  147362 [main] rmdir 880 symlink_info::check: 
GetFileAttributesA (c:\pktemp) failed
   708  148070 [main] rmdir 880 geterrno_from_win_error: windows 
error 5 == errno 13
   607  148677 [main] rmdir 880 symlink_info::check: 0 = 
symlink.check (c:\pktemp, 0x240F7C9) (0x20)
   941  149618 [main] rmdir 880 path_conv::check: 
GetVolumeInformation(c:\) = OK, full_path(c:\pktemp), set_has_acls(0)
   917  150535 [main] rmdir 880 seterrno_from_win_error: 
/cygnus/netrel/src/cygwin-1.1.7-1/winsup/cygwin/dir.cc:348 errno 5
   923  151458 [main] rmdir 880 geterrno_from_win_error: windows 
error 5 == errno 13
   606  152064 [main] rmdir 880 rmdir: -1 = rmdir (pktemp)
   617  152681 [main] rmdir 880 _write: write (2, 0x240F724, 7)
   584  153265 [main] rmdir 880 fhandler_console::write: 240F724, 7
   574  153839 [main] rmdir 880 fhandler_console::write: at 114(r) 
state is 1
rmdir: 16303  170142 [main] rmdir 880 fhandler_console::write: 7 = 
write_console (,..7)
   715  170857 [main] rmdir 880 _write: 7 = write (2, 0x240F724, 7)
   600  171457 [main] rmdir 880 _write: write (2, 0x240F754, 6)
   570  172027 [main] rmdir 880 fhandler_console::write: 240F754, 6
   568  172595 [main] rmdir 880 fhandler_console::write: at 112(p) 
state is 1
pktemp  706  173301 [main] rmdir 880 fhandler_console::write: 6 = 
write_console (,..6)
   616  173917 [main] rmdir 880 _write: 6 = write (2, 0x240F754, 6)
   603  174520 [main] rmdir 880 _write: write (2, 0x240F724, 19)
   571  175091 [main] rmdir 880 fhandler_console::write: 240F724, 19
   569  175660 [main] rmdir 880 fhandler_console::write: at 58(:) 
state is 1
: Permission denied  719  176379 [main] rmdir 880 
fhandler_console::write: 19 = write_console (,..19)
   607  176986 [main] rmdir 880 _write: 19 = write (2, 0x240F724, 19)
   621  177607 [main] rmdir 880 _write: write (2, 0x6108C2E7, 1)
   577  178184 [main] rmdir 880 fhandler_console::write: 6108C2E7, 1
   567  178751 [main] rmdir 880 fhandler_console::write: at 10(0x20) 
state is 1

  1061  179812 [main] rmdir 880 fhandler_console::write: 1 = 
write_console (,..1)
   632  180444 [main] rmdir 880 _write: 1 = write (2, 0x6108C2E7, 1)
   616  181060 [main] rmdir 880 do_exit: do_exit (1)
   568  181628 [main] rmdir 880 void: 0x0 = signal (20, 0x1)
   566  182194 [main] rmdir 880 void: 0x0 = signal (1, 0x1)
   560  182754 [main] rmdir 880 void: 0x0 = signal (2, 0x1)
   559  183313 [main] rmdir 880 void: 0x0 = signal (3, 0x1)
   708  184021 [main] rmdir 880 proc_terminate: nchildren 0, nzombies 0
   582  184603 [main] rmdir 880 proc_terminate: leaving
   563  185166 [main] rmdir 880 sigproc_terminate: entering
   576  185742 [main] rmdir 880 sigproc_terminate: done
   801  186543 [main] rmdir 880 __to_clock_t: dwHighDateTime 0, 
dwLowDateTime 200288
   613  187156 [main] rmdir 880 __to_clock_t: total 00000000 00000014
   615  187771 [main] rmdir 880 __to_clock_t: dwHighDateTime 0, 
dwLowDateTime 200288
   598  188369 [main] rmdir 880 __to_clock_t: total 00000000 00000014
   580  188949 [main] rmdir 880 _pinfo::exit: Calling ExitProcess 1


Eventually this problem will go away. I'll run one of my batch files 
a day or three later and the dir will be gone. Exactly how or why 
this happens I don't know. Rebooting does solve the problem - upon 
reboot the offending directory no longer exists.


Any hints or comments appreciated.
Thanks,
Scott


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]