summaryrefslogtreecommitdiff
path: root/usr.bin/oldrdist/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/oldrdist/server.c')
-rw-r--r--usr.bin/oldrdist/server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/oldrdist/server.c b/usr.bin/oldrdist/server.c
index a7b878e60c2..04173e34edc 100644
--- a/usr.bin/oldrdist/server.c
+++ b/usr.bin/oldrdist/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.17 2002/02/19 19:39:38 millert Exp $ */
+/* $OpenBSD: server.c,v 1.18 2002/06/09 21:11:22 hin Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -35,11 +35,14 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */
-static char *rcsid = "$OpenBSD: server.c,v 1.17 2002/02/19 19:39:38 millert Exp $";
+static char *rcsid = "$OpenBSD: server.c,v 1.18 2002/06/09 21:11:22 hin Exp $";
#endif /* not lint */
#include <sys/wait.h>
+
#include <stdarg.h>
+#include <libgen.h>
+
#include "defs.h"
#define ack() (void) write(rem, "\0\n", 2)
@@ -281,7 +284,7 @@ install(src, dest, destdir, opts)
rname++;
destdir = 1;
} else {
- rname = xbasename(target);
+ rname = basename(target);
}
if (debug)
printf("target = %s, rname = %s\n", target, rname);