Paul's patch to improve the "not creating new ..." message
authorWayne Davison <wayned@samba.org>
Sun, 10 Apr 2005 19:44:16 +0000 (19:44 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 10 Apr 2005 19:44:16 +0000 (19:44 +0000)
for directories.

generator.c

index b73e50a..a4a54a0 100644 (file)
@@ -668,7 +668,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
        if (only_existing && statret == -1 && stat_errno == ENOENT) {
                /* we only want to update existing files */
                if (verbose > 1) {
-                       rprintf(FINFO, "not creating new file \"%s\"\n",
+                       rprintf(FINFO, "not creating new %s \"%s\"\n",
+                               S_ISDIR(file->mode) ? "directory" : "file",
                                safe_fname(fname));
                }
                return;