diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-05 01:32:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-05 01:32:48 +0000 |
commit | 75f687005e7096a4b704e86d274450d3f372d319 (patch) | |
tree | 7038b02635f89081e48f418780f775108239c870 /usr.bin/rdist/client.c | |
parent | c5519824cb32a08dff84e1a21b1fc01da8d9e663 (diff) |
Don't assume printf will deal gracefully with NULL pointers for %s, BSD does but SysV does not
Diffstat (limited to 'usr.bin/rdist/client.c')
-rw-r--r-- | usr.bin/rdist/client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c index 4f607ff3d08..6cd4d91a103 100644 --- a/usr.bin/rdist/client.c +++ b/usr.bin/rdist/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.10 1999/02/23 21:27:15 millert Exp $ */ +/* $OpenBSD: client.c,v 1.11 1999/03/05 01:32:47 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -39,7 +39,7 @@ static char RCSid[] = "$From: client.c,v 6.80 1996/02/28 20:34:27 mcooper Exp $"; #else static char RCSid[] = -"$OpenBSD: client.c,v 1.10 1999/02/23 21:27:15 millert Exp $"; +"$OpenBSD: client.c,v 1.11 1999/03/05 01:32:47 millert Exp $"; #endif static char sccsid[] = "@(#)client.c"; @@ -364,7 +364,8 @@ static int sendhardlink(opts, lp, rname, destdir) debugmsg(DM_MISC, "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n", - rname, lp->pathname, lp->src, lp->target); + rname, lp->pathname ? lp->pathname : "nil", + lp->src ? lp->src : "nil", lp->target ? lp->target : "nil"); if (lp->target == NULL) (void) sendcmd(C_RECVHARDLINK, "%o %s %s", |