diff options
author | Wayne Davison <wayned@samba.org> | 2003-01-10 20:08:43 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-01-10 20:08:43 +0000 |
commit | 7ea84b6890bfe0de58bda4553b3c4a39a18c7499 (patch) | |
tree | 57c46304b8f7d0143cf9c390d56a288f0c08bbc1 /lib/permstring.c | |
parent | cc234d944afb06ccbcc6ff78207519c1e7940450 (diff) | |
download | rsync-7ea84b6890bfe0de58bda4553b3c4a39a18c7499.tar.gz |
Only refer to S_ISVTX if S_ISVTX is defined.
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'; |