chmod -x fails, apparently due to umask
Bug #67583 reported by
Matt Zimmerman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Invalid
|
Undecided
|
Matt Zimmerman |
Bug Description
Test case:
mizar:[/tmp] cat chmod.sh
#!/bin/sh
umask 007
touch testfile
chmod 645 testfile
chmod -x testfile
ls -l testfile
mizar:[/tmp] ./chmod.sh
chmod: testfile: new permissions are rw-r--r-x, not rw-r--r--
-rw-r--r-x 1 mdz mdz 0 2006-10-22 08:05 testfile
and it's correct, the resulting permissions are not what they should be. strace shows, however, that it is not even attempting to set them correctly:
chmod("testfile", 0645) = 0
To post a comment you must log in.
(note that the same test succeeds with umask 022)