summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-03-07 16:08:20 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-03-07 16:08:20 +0000
commitd061cdbee42eb1da2c081d154b23a77670baf7e3 (patch)
treec595968776336a9402950cfe9cf5cf0f6b31da90
parent20b42ea0d413dd8878f65059815c24105eba1d31 (diff)
make device MAXPATHLEN long instead of 64, fixes remote dumps with
long target file names, PR4137, ok miod beck mcbride deraadt
-rw-r--r--usr.sbin/rmt/rmt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c
index 0f0949af606..cc5e196dc0c 100644
--- a/usr.sbin/rmt/rmt.c
+++ b/usr.sbin/rmt/rmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rmt.c,v 1.11 2003/06/02 23:36:54 millert Exp $ */
+/* $OpenBSD: rmt.c,v 1.12 2005/03/07 16:08:19 henning Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -37,7 +37,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)rmt.c 5.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: rmt.c,v 1.11 2003/06/02 23:36:54 millert Exp $";
+static char rcsid[] = "$Id: rmt.c,v 1.12 2005/03/07 16:08:19 henning Exp $";
#endif /* not lint */
/*
@@ -50,6 +50,7 @@ static char rcsid[] = "$Id: rmt.c,v 1.11 2003/06/02 23:36:54 millert Exp $";
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/mtio.h>
+#include <sys/param.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
@@ -61,7 +62,7 @@ char *record;
int maxrecsize = -1;
#define STRSIZE 64
-char device[STRSIZE];
+char device[MAXPATHLEN];
char count[STRSIZE], mode[STRSIZE], pos[STRSIZE], op[STRSIZE];
char resp[BUFSIZ];