diff options
Diffstat (limited to 'lib/permstring.c')
-rw-r--r-- | lib/permstring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/permstring.c b/lib/permstring.c index a253f071..fc75d088 100644 --- a/lib/permstring.c +++ b/lib/permstring.c @@ -47,8 +47,10 @@ void permstring(char *perms, if (mode & S_ISGID) perms[6] = (mode & S_IXGRP) ? 's' : 'S'; +#ifdef S_ISVTX if (mode & S_ISVTX) perms[9] = (mode & S_IXOTH) ? 't' : 'T'; +#endif if (S_ISLNK(mode)) perms[0] = 'l'; if (S_ISDIR(mode)) perms[0] = 'd'; |