AW: 1.5.16-1: chmod problem
Pach Roman (GS-EC/ESA4) *
Roman.Pach@de.bosch.com
Mon May 2 05:41:00 GMT 2005
Hello,
I have tried now using strace.
The file strace.14 has been generated for cygwin-1.5.14-1, and strace.15 for cygwin-1.5.15-1.
The command used was:
> strace chmod +w /u/tmp/yahoo > /tmp/strace.15 2>&1
The concerned part from strace.14:
...
3310 116505 [main] chmod 1448 set_process_privilege: 0 = set_process_privilege (SeRestorePrivilege, 1)
244 116749 [main] chmod 1448 set_file_attribute: 0 = set_file_attribute (u:\tmp\yahoo, -1, -1, 0x124)
10376 127125 [main] chmod 1448 chmod: 0 = chmod (/u/tmp/yahoo, 0x124)
699 127824 [main] chmod 1448 chdir: dir '/c'
...
And the same from strace.15
...
199 5004896 [main] chmod 1436 fhandler_base::open: (u:\tmp\yahoo, 0x110000)
1441 5006337 [main] chmod 1436 seterrno_from_win_error: /netrel/src/cygwin-1.5.15-1/winsup/cygwin/fhandler.cc:668 windows error 5
216 5006553 [main] chmod 1436 geterrno_from_win_error: windows error 5 == errno 13
186 5006739 [main] chmod 1436 fhandler_base::open: C0000022 = NtCreateFile (0x0, E0100, u:\tmp\yahoo, io, NULL, 0, 7, 1, 4400, NULL, 0)
187 5006926 [main] chmod 1436 fhandler_base::open: 0 = fhandler_base::open (u:\tmp\yahoo, 0x110000)
181 5007107 [main] chmod 1436 fhandler_base::open_fs: 0 = fhandler_disk_file::open (u:\tmp\yahoo, 0x10000)
185 5007292 [main] chmod 1436 chmod: -1 = chmod (/u/tmp/yahoo, 0x1B6)
1226 5008518 [main] chmod 1436 open: open (/usr/share/locale/locale.alias, 0x0)
...
The first thing I can see is that 'fhandler_base::open:' returns with the 'windows error 5'
Is that the reason for chmod to fail later?
Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.14
Type: application/octet-stream
Size: 36855 bytes
Desc: strace.14
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050502/95f1bcfe/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.15
Type: application/octet-stream
Size: 73734 bytes
Desc: strace.15
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050502/95f1bcfe/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: locale.alias
Type: application/octet-stream
Size: 2672 bytes
Desc: locale.alias
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050502/95f1bcfe/attachment-0002.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list