Added a new arg to the make_file() call.
authorWayne Davison <wayned@samba.org>
Thu, 19 Jan 2006 21:16:40 +0000 (21:16 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 19 Jan 2006 21:16:40 +0000 (21:16 +0000)
backup.c
generator.c

index e34b7be..15a8f97 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -180,7 +180,7 @@ static int keep_backup(char *fname)
        if (do_lstat(fname, &st) < 0)
                return 1;
 
-       if (!(file = make_file(fname, NULL, NO_FILTERS)))
+       if (!(file = make_file(fname, NULL, NULL, NO_FILTERS)))
                return 1; /* the file could have disappeared */
 
        if (!(buf = get_backup_name(fname)))
index afa56a2..32f0dde 100644 (file)
@@ -1195,7 +1195,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
                        close(fd);
                        return;
                }
-               if (!(back_file = make_file(fname, NULL, NO_FILTERS))) {
+               if (!(back_file = make_file(fname, NULL, NULL, NO_FILTERS))) {
                        close(fd);
                        goto pretend_missing;
                }
@@ -1267,7 +1267,6 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
        close(fd);
 }
 
-
 void generate_files(int f_out, struct file_list *flist, char *local_name)
 {
        int i;
@@ -1430,6 +1429,7 @@ void generate_files(int f_out, struct file_list *flist, char *local_name)
                 * modified-time values. */
                for (i = 0; i < flist->count; i++) {
                        struct file_struct *file = flist->files[i];
+
                        if (!file->basename || !S_ISDIR(file->mode))
                                continue;
                        if (!need_retouch_dir_times && file->mode & S_IWUSR)