summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist/client.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1996-07-25 05:30:59 +0000
committermillert <millert@openbsd.org>1996-07-25 05:30:59 +0000
commit5ae19401e245ff8ce7589ab475548fdd91e13f11 (patch)
tree3b6f235ef42fa184b74f5e21149ebb3f4ee9eac8 /usr.bin/rdist/client.c
parentReplaced sprintf() with snprintf() where buffer size is obvious. (diff)
downloadwireguard-openbsd-5ae19401e245ff8ce7589ab475548fdd91e13f11.tar.xz
wireguard-openbsd-5ae19401e245ff8ce7589ab475548fdd91e13f11.zip
Updated to rdist 6.1.3. Used real snprintf() (instead of string length
in the format) since we have it.
Diffstat (limited to 'usr.bin/rdist/client.c')
-rw-r--r--usr.bin/rdist/client.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c
index 8b2cc7226f9..d81a5bb3868 100644
--- a/usr.bin/rdist/client.c
+++ b/usr.bin/rdist/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.3 1996/06/26 05:38:08 deraadt Exp $ */
+/* $OpenBSD: client.c,v 1.4 1996/07/25 05:31:00 millert Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -35,7 +35,7 @@
#ifndef lint
static char RCSid[] =
-"$OpenBSD: client.c,v 1.3 1996/06/26 05:38:08 deraadt Exp $";
+"$OpenBSD: client.c,v 1.4 1996/07/25 05:31:00 millert Exp $";
static char sccsid[] = "@(#)client.c";
@@ -531,6 +531,12 @@ static int rmchk(opts)
message(MT_INFO, "%s", s);
break;
+ case C_NOTEMSG:
+ if (n > 0)
+ message(MT_NOTICE, "%s", s);
+ break;
+ /* Goto top of loop */
+
case C_ERRMSG:
message(MT_NERROR, "%s", s);
return(didupdate);
@@ -707,6 +713,12 @@ static int sendlink(rname, opts, stb, user, group, destdir)
message(MT_INFO, "%s", s);
break;
+ case C_NOTEMSG:
+ if (n > 0)
+ message(MT_NOTICE, "%s", s);
+ break;
+ /* Goto top of loop */
+
case C_ERRMSG:
message(MT_NERROR, "%s", s);
return(-1);