diff options
author | jkh <jkh@FreeBSD.org> | 1998-10-28 22:44:24 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-10-28 22:44:24 +0000 |
commit | f3968a7d326bda9dc4b64e3cb0120ef66cca2f4a (patch) | |
tree | abc2c1e258287df8eefb63e510b9cb305e6d3f6d /usr.sbin/pkg_install | |
parent | dc7a9e560ac1e8675641456afa252791270ec714 (diff) | |
download | FreeBSD-src-f3968a7d326bda9dc4b64e3cb0120ef66cca2f4a.zip FreeBSD-src-f3968a7d326bda9dc4b64e3cb0120ef66cca2f4a.tar.gz |
Unlink old contents of package when extracting new.
Submitted by: pst
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/add/extract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/add/extract.c b/usr.sbin/pkg_install/add/extract.c index 0522f2b..ac8d4bf 100644 --- a/usr.sbin/pkg_install/add/extract.c +++ b/usr.sbin/pkg_install/add/extract.c @@ -1,6 +1,6 @@ #ifndef lint static const char rcsid[] = - "$Id: extract.c,v 1.21 1998/09/11 07:26:54 jkh Exp $"; + "$Id: extract.c,v 1.22 1998/10/12 20:01:48 jkh Exp $"; #endif /* @@ -34,7 +34,7 @@ static const char rcsid[] = #define PUSHOUT(todir) /* push out string */ \ if (where_count > sizeof(STARTSTRING)-1) { \ - strcat(where_args, "|tar xf - -C "); \ + strcat(where_args, "|tar --unlink -xf - -C "); \ strcat(where_args, todir); \ if (system(where_args)) { \ cleanup(0); \ |