Fixed return code from hard_link_one() when not verbose.
authorWayne Davison <wayned@samba.org>
Thu, 7 Feb 2008 00:06:33 +0000 (16:06 -0800)
committerWayne Davison <wayned@samba.org>
Thu, 7 Feb 2008 00:06:33 +0000 (16:06 -0800)
hlink.c

diff --git a/hlink.c b/hlink.c
index 87e4236..1a1e7c1 100644 (file)
--- a/hlink.c
+++ b/hlink.c
@@ -393,7 +393,7 @@ int hard_link_one(struct file_struct *file, const char *fname,
                enum logcode code;
                if (terse) {
                        if (!verbose)
-                               return -1;
+                               return 0;
                        code = FINFO;
                } else
                        code = FERROR_XFER;