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
The -h was missing from the daemon's option summary.
[rsync/rsync.git]
/
lib
/
permstring.c
diff --git
a/lib/permstring.c
b/lib/permstring.c
index
a253f07
..
3834b7a
100644
(file)
--- a/
lib/permstring.c
+++ b/
lib/permstring.c
@@
-26,8
+26,7
@@
*
* @param buf buffer of at least 11 characters
**/
*
* @param buf buffer of at least 11 characters
**/
-void permstring(char *perms,
- int mode)
+void permstring(char *perms, mode_t mode)
{
static const char *perm_map = "rwxrwxrwx";
int i;
{
static const char *perm_map = "rwxrwxrwx";
int i;
@@
-47,8
+46,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';