Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Call make_file() with one more arg (the base flags).
[rsync/rsync.git]
/
lib
/
permstring.c
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';