diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-28 09:43:36 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-28 09:43:36 +0000 |
| commit | 34375f5af01bdf13dccdc23662f2d1d1b0eb9d9e (patch) | |
| tree | c7436b3805e9c646595d4059601b27706fc08cc3 /usr.sbin/sysinstall | |
| parent | adc0fd37fc7e3084b06ac99dad351c565e139fd8 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sysinstall')
| -rw-r--r-- | usr.sbin/sysinstall/dist.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index a33e9a690a250..a7ed7b822117b 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dist.c,v 1.28 1995/05/28 03:04:49 jkh Exp $ + * $Id: dist.c,v 1.29 1995/05/28 07:05:21 phk Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -223,7 +223,7 @@ distExtract(char *parent, Distribution *me) { int i, status; int cpid, zpid, fd, fd2, chunk, numchunks; - char dparent[FILENAME_MAX], *path, *dist, buf[10240]; + char *path, *dist, buf[10240]; const char *tmp; Attribs *dist_attr; @@ -243,9 +243,8 @@ distExtract(char *parent, Distribution *me) goto done; } - snprintf(dparent, FILENAME_MAX, "%s/", parent ? parent : me[i].my_name); dist = me[i].my_name; - path = dparent ? dparent : ""; + path = parent ? parent : me[i].my_name; snprintf(buf, 512, "%s%s.tgz", path, dist); fd = (*mediaDevice->get)(buf); |
