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
(parent:
fd78520
)
Added braces to an empty "if" (to avoid any complaints from a compiler
author
Wayne Davison
<wayned@samba.org>
Mon, 15 Oct 2007 00:16:12 +0000
(
00:16
+0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 15 Oct 2007 00:16:12 +0000
(
00:16
+0000)
that likes to point out an "if (...)" with a semicolon after it).
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
731528f
..
573641a
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-401,9
+401,9
@@
int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp,
change_gid = gid_ndx && !(file->flags & FLAG_SKIP_GROUP)
&& sxp->st.st_gid != (gid_t)F_GROUP(file);
#if !defined HAVE_LCHOWN && !defined CHOWN_MODIFIES_SYMLINK
- if (S_ISLNK(sxp->st.st_mode))
+ if (S_ISLNK(sxp->st.st_mode))
{
;
- else
+
}
else
#endif
if (change_uid || change_gid) {
if (verbose > 2) {