summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-28 09:43:36 +0000
committerjkh <jkh@FreeBSD.org>1995-05-28 09:43:36 +0000
commita18e016a4c13b75dff3e2ebc879df094ed096282 (patch)
treec7436b3805e9c646595d4059601b27706fc08cc3 /release
parent06c34bfded6c9af144bb3dbf59f196cde5845f73 (diff)
downloadFreeBSD-src-a18e016a4c13b75dff3e2ebc879df094ed096282.zip
FreeBSD-src-a18e016a4c13b75dff3e2ebc879df094ed096282.tar.gz
Remove a needless complication - parent directory already has a trailing /.
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/dist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c
index a33e9a6..a7ed7b8 100644
--- a/release/sysinstall/dist.c
+++ b/release/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);
OpenPOWER on IntegriCloud