If there is no lchown(), don't try to set the user & group of a symlink.
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index daf96b4..f63de7f 100644 (file)
--- a/log.c
+++ b/log.c
@@ -61,7 +61,7 @@ struct {
        { RERR_WAITCHILD  , "some error returned by waitpid()" },
        { RERR_MALLOC     , "error allocating core memory buffers" },
        { RERR_PARTIAL    , "some files could not be transferred" },
-       { RERR_VANISHED   , "some files vanished before they could be transfered" },
+       { RERR_VANISHED   , "some files vanished before they could be transferred" },
        { RERR_TIMEOUT    , "timeout in data send/receive" },
        { RERR_CMD_FAILED , "remote shell failed" },
        { RERR_CMD_KILLED , "remote shell killed" },
@@ -373,7 +373,7 @@ static void log_formatted(enum logcode code,
                        pathjoin(buf2, sizeof buf2,
                                 file->basedir ? file->basedir : "",
                                 f_name(file));
-                       clean_fname(buf2);
+                       clean_fname(buf2, 0);
                        n = buf2;
                        if (*n == '/') n++;
                        break;