diff options
author | jkh <jkh@FreeBSD.org> | 1997-10-13 15:03:55 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-10-13 15:03:55 +0000 |
commit | 4b318a582678d8f68d483f6a6e26bed4605e1bb2 (patch) | |
tree | 616a602eaba10b4a9566eeba12230e573af92805 /usr.sbin/pkg_install/create/perform.c | |
parent | f71ea4919aca593ee0fd403a76ddb6b0113b7ba6 (diff) | |
download | FreeBSD-src-4b318a582678d8f68d483f6a6e26bed4605e1bb2.zip FreeBSD-src-4b318a582678d8f68d483f6a6e26bed4605e1bb2.tar.gz |
Don't return from cleanup() - if it's removed the playpen then very
bad things will happen if we return to unsuspecting code.
Noted to my great dismay by: Tim Vanderhoek <hoek@hwcn.org>
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index 2394d8c..830a2b2 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,6 +1,6 @@ #ifndef lint static const char rcsid[] = - "$Id: perform.c,v 1.36 1997/07/04 04:48:02 jkh Exp $"; + "$Id: perform.c,v 1.37 1997/10/08 07:46:27 charnier Exp $"; #endif /* @@ -182,7 +182,7 @@ pkg_perform(char **pkgs) free(Comment); free(Desc); free_plist(&plist); - cleanup(0); + leave_playpen(home); return TRUE; /* Success */ } @@ -293,4 +293,5 @@ void cleanup(int sig) { leave_playpen(home); + exit(1); } |