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
In clean_flist(), if a duplicate is found for a dir and a non-dir,
[rsync/rsync.git]
/
lib
/
permstring.c
diff --git
a/lib/permstring.c
b/lib/permstring.c
index
525a9ac
..
fc75d08
100644
(file)
--- a/
lib/permstring.c
+++ b/
lib/permstring.c
@@
-18,7
+18,7
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include
<sys/stat.h>
+#include
"rsync.h"
/**
* Produce a string representation of Unix mode bits like that used by
/**
* Produce a string representation of Unix mode bits like that used by
@@
-47,8
+47,10
@@
void permstring(char *perms,
if (mode & S_ISGID)
perms[6] = (mode & S_IXGRP) ? 's' : 'S';
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';
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';
if (S_ISLNK(mode)) perms[0] = 'l';
if (S_ISDIR(mode)) perms[0] = 'd';