diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-25 23:26:18 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-25 23:26:18 +0000 |
commit | 47c8b338c1262d3d64a3626080f31a2fa04141da (patch) | |
tree | 6656aeb2a4cfd223d77be590cd664a462c04a527 /usr.sbin/pkg_install | |
parent | 663d7f5fb2e433f3274fdda0c1503ebb508808ba (diff) |
kill #if 0 code w/ evil string functions, deraadt/tdeval
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 352caf82848..1823138da60 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,7 +1,7 @@ -/* $OpenBSD: file.c,v 1.17 2003/04/19 10:46:16 henning Exp $ */ +/* $OpenBSD: file.c,v 1.18 2003/04/25 23:26:17 henning Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: file.c,v 1.17 2003/04/19 10:46:16 henning Exp $"; +static const char *rcsid = "$OpenBSD: file.c,v 1.18 2003/04/25 23:26:17 henning Exp $"; #endif /* @@ -294,17 +294,8 @@ fileGetURL(char *base, char *spec) we don't yet need to backup the category and switch to all. */ cp = strrchr(fname, '/'); -#if 0 - if (cp) { - *cp = '\0'; /* chop name */ - cp = strrchr(fname, '/'); - } -#endif if (cp) { *(cp + 1) = '\0'; -#if 0 - strcat(cp, "All/"); -#endif strlcat(cp, ensure_tgz(spec), sizeof fname); } else |