summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rmt
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-09-15 10:30:25 +0000
committergibbs <gibbs@FreeBSD.org>1998-09-15 10:30:25 +0000
commit27097a06ffffe8c252c3869f24ae487bde5feaa7 (patch)
tree681f23ebad4e2a55ad1b9453f737437bdc36129e /usr.sbin/rmt
parent30341692415afc6f06d2d7bb12c4b6c4d80e0f01 (diff)
downloadFreeBSD-src-27097a06ffffe8c252c3869f24ae487bde5feaa7.zip
FreeBSD-src-27097a06ffffe8c252c3869f24ae487bde5feaa7.tar.gz
Add support for the 'V'ersion rmt command.
Diffstat (limited to 'usr.sbin/rmt')
-rw-r--r--usr.sbin/rmt/rmt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c
index 88b7623..436d6fb 100644
--- a/usr.sbin/rmt/rmt.c
+++ b/usr.sbin/rmt/rmt.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)rmt.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: rmt.c,v 1.1 1998/05/15 12:09:06 hans Exp hans $";
#endif /* not lint */
/*
@@ -190,6 +190,12 @@ top:
goto top;
}
+ case 'V': /* version */
+ getstring(op);
+ DEBUG1("rmtd: V %s\n", op);
+ rval = 2;
+ goto respond;
+
default:
DEBUG1("rmtd: garbage command %c\n", c);
exit(3);
OpenPOWER on IntegriCloud