diff options
author | A. Walton <awalton@gnome.org> | 2008-06-16 16:23:02 +0000 |
---|---|---|
committer | Andrew Walton <awalton@src.gnome.org> | 2008-06-16 16:23:02 +0000 |
commit | a21bbf40bdfbfa54f8b7f0d4c9dc20262759d823 (patch) | |
tree | c16c17e27e8ecc5507bfe54ac0f713e6c6af036c | |
parent | 6ef099b1fb84680c1bd8820fd75be11be2443cde (diff) | |
download | nautilus-a21bbf40bdfbfa54f8b7f0d4c9dc20262759d823.tar.gz |
Correct a typo in the permissions code: suid should test for S_ISUID
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.
svn path=/branches/gnome-2-22/; revision=14271
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | libnautilus-private/nautilus-file.c | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,12 @@ +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. + 2008-06-16 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-file-operations.c (copy_move_file): diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index debf4eb34..222b524ff 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -4873,7 +4873,7 @@ nautilus_file_get_permissions_as_string (NautilusFile *file) is_link = nautilus_file_is_symbolic_link (file); /* We use ls conventions for displaying these three obscure flags */ - suid = permissions & S_ISGID; + suid = permissions & S_ISUID; sgid = permissions & S_ISGID; sticky = permissions & S_ISVTX; |