When we say we're skipping a non-regular file, actually skip it.
authorWayne Davison <wayned@samba.org>
Tue, 7 Sep 2004 19:49:09 +0000 (19:49 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 7 Sep 2004 19:49:09 +0000 (19:49 +0000)
backup.c

index bf98f74..05f5360 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -228,6 +228,7 @@ static int keep_backup(char *fname)
        if (!kept && !S_ISREG(file->mode)) {
                rprintf(FINFO, "make_bak: skipping non-regular file %s\n",
                        fname);
+               return 1;
        }
 
        /* move to keep tree if a file */