Better error messages when unlink fails
authorMartin Pool <mbp@samba.org>
Wed, 8 Nov 2000 09:45:16 +0000 (09:45 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 8 Nov 2000 09:45:16 +0000 (09:45 +0000)
generator.c

index 1ab2bddf9cd9997e54c9c7aacc2494583313a2e3..1d1784fe5218751f7bb8b4666d9e31d02b85a790 100644 (file)
@@ -217,7 +217,7 @@ void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
                if (dry_run) return;
                if (statret == 0 && !S_ISDIR(st.st_mode)) {
                        if (robust_unlink(fname) != 0) {
-                               rprintf(FERROR,"unlink %s : %s\n",fname,strerror(errno));
+                               rprintf(FERROR,"recv_generator: unlink %s: %s\n",fname,strerror(errno));
                                return;
                        }
                        statret = -1;