Unlink old contents of package when extracting new.

Submitted by:	pst
This commit is contained in:
Jordan K. Hubbard 1998-10-28 22:44:24 +00:00
parent 6f72efa21b
commit 400d793dd7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40709

View file

@ -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); \