mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
Unlink old contents of package when extracting new.
Submitted by: pst
This commit is contained in:
parent
6f72efa21b
commit
400d793dd7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40709
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue