GNOME Bugzilla – Bug 538468
Incorrect display of file permissions: group S-Bit is used for user S-Bit
Last modified: 2008-06-16 16:24:15 UTC
Bug reported by Matty Dee in the Ubuntu bug tracker for 2.22 ( https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/240165 ) but still present in trunk: touch zzz chmod g+s zzz ls -l zzz gives: -rw-r-Sr-- 1 matty media 0 2008-06-15 06:31 zzz nautilus reports: -rwSr-Sr--
Created attachment 112787 [details] [review] Patch correcting S_ISGID --> S_ISUID Both suid and sgid test for S_ISGID, suid should test for S_ISUID instead.
Looks obviously correct to me, probably a copy+paste error. Should go in 2.22 and trunk. Thanks!
I went ahead and committed this on your behalf; I wasn't sure if you had svn access or not. 2008-06-16 A. Walton <awalton@gnome.org> * libnautilus-private/nautilus-file.c (nautilus_file_get_permissions_as_string): Correct a typo in the permissions code: suid should test for S_ISUID instead of G_ISGID. Closes bug #538468. Patch by Marcel Stimberg. Closing as FIXED. Thanks again!