Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cc234d9
)
Only refer to S_ISVTX if S_ISVTX is defined.
author
Wayne Davison
<wayned@samba.org>
Fri, 10 Jan 2003 20:08:43 +0000
(20:08 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 10 Jan 2003 20:08:43 +0000
(20:08 +0000)
lib/permstring.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/permstring.c
b/lib/permstring.c
index
a253f07
..
fc75d08
100644
(file)
--- 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';