! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
file manager (4.0.1) doesn't show sticky bits
Status:
CLOSED: FIXED

Comments

Description tuxgent00 2003-12-13 21:59:29 CET
Go to /tmp and look at the mode column:
drwxrwxrwx
but `ls /tmp' shows:
drwxrwxrwt
Comment 1 tuxgent00 2003-12-13 21:59:31 CET
Additional information:

I have not tested it! But seems trivial, unless some
systems don't define the S_* flags I'm using.

Just add the following lines to xffm-4.0.1/libs/ls.c:

diff ls.c ls-fixed.c
219a220,222
> str[3] = mode & S_ISUID ? 's' : str[3];
> str[6] = mode & S_ISGID ? 'S' : str[6];
> str[9] = mode & S_ISVTX ? 't' : str[9];

Make sure it goes after the first assignment to str[3],
str[6], and str[9].
Comment 2 edscott editbugs 2003-12-16 14:58:07 CET
patch applied to both 4.0.1 and 4.1 CVS. Thanks for the patch, it seems to work
fine.

Bug #45

Reported by:
tuxgent00
Reported on: 2003-12-13
Last modified on: 2009-07-14

People

Assignee:
edscott
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information