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:
77860ba
)
Use PERMSTRING_SIZE rather than a hard-wired "11".
author
Wayne Davison
<wayned@samba.org>
Sun, 29 Jan 2006 20:30:02 +0000
(20:30 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 29 Jan 2006 20:30:02 +0000
(20:30 +0000)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
6b1be78
..
3e757db
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-130,26
+130,26
@@
void show_flist_stats(void)
static void list_file_entry(struct file_struct *f)
{
static void list_file_entry(struct file_struct *f)
{
- char perm
s[11
];
+ char perm
buf[PERMSTRING_SIZE
];
if (!f->basename) {
/* this can happen if duplicate names were removed */
return;
}
if (!f->basename) {
/* this can happen if duplicate names were removed */
return;
}
- permstring(perm
s
, f->mode);
+ permstring(perm
buf
, f->mode);
#ifdef SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
rprintf(FINFO, "%s %11.0f %s %s -> %s\n",
#ifdef SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
rprintf(FINFO, "%s %11.0f %s %s -> %s\n",
- perm
s
,
+ perm
buf
,
(double)f->length, timestring(f->modtime),
f_name(f, NULL), f->u.link);
} else
#endif
{
rprintf(FINFO, "%s %11.0f %s %s\n",
(double)f->length, timestring(f->modtime),
f_name(f, NULL), f->u.link);
} else
#endif
{
rprintf(FINFO, "%s %11.0f %s %s\n",
- perm
s
,
+ perm
buf
,
(double)f->length, timestring(f->modtime),
f_name(f, NULL));
}
(double)f->length, timestring(f->modtime),
f_name(f, NULL));
}