fix error message when recv() can't write new file.
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 15 Feb 1985 02:04:07 +0000 (18:04 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 15 Feb 1985 02:04:07 +0000 (18:04 -0800)
SCCS-vsn: usr.bin/rdist/server.c 4.23

usr/src/usr.bin/rdist/server.c

index b727ab2..f35ca2b 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)server.c    4.22 (Berkeley) 84/12/07";
+static char *sccsid = "@(#)server.c    4.23 (Berkeley) 85/02/14";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -779,7 +779,7 @@ recvf(cmd, type)
                return;
        }
        if (wrerr) {
                return;
        }
        if (wrerr) {
-               error("%s:%s: %s\n", host, cp, sys_errlist[olderrno]);
+               error("%s:%s: %s\n", host, new, sys_errlist[olderrno]);
                (void) unlink(new);
                return;
        }
                (void) unlink(new);
                return;
        }