X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cc234d944afb06ccbcc6ff78207519c1e7940450..7ea84b6890bfe0de58bda4553b3c4a39a18c7499:/lib/permstring.c 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';