summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-17 10:54:11 +0000
committerjkh <jkh@FreeBSD.org>1994-11-17 10:54:11 +0000
commit316a159f85b9ecece3a809103cb02bea40c0a9f4 (patch)
tree90ad34aa6a2246b9317a515cc30ede0d69c1e641 /usr.sbin
parent7778f5380f0d396dbeb0be6520406d7cd435357e (diff)
downloadFreeBSD-src-316a159f85b9ecece3a809103cb02bea40c0a9f4.zip
FreeBSD-src-316a159f85b9ecece3a809103cb02bea40c0a9f4.tar.gz
Don't create packages with bogus @name lines.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/create/perform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index a0e1406..36d6d5f 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: perform.c,v 1.11 1994/10/04 15:54:39 jkh Exp $";
+static const char *rcsid = "$Id: perform.c,v 1.12 1994/10/14 05:55:46 jkh Exp $";
#endif
/*
@@ -75,7 +75,7 @@ pkg_perform(char **pkgs)
* at the top.
*/
if (find_plist(&plist, PLIST_NAME) == NULL)
- add_plist_top(&plist, PLIST_NAME, pkg);
+ add_plist_top(&plist, PLIST_NAME, basename_of(pkg));
/* Make a directory to stomp around in */
home = make_playpen(PlayPen, 0);
OpenPOWER on IntegriCloud