Whoops, only attempt to back up the file if it exists. :-}

This commit is contained in:
Jordan K. Hubbard 1997-06-30 02:57:40 +00:00
parent d0c6d6d08a
commit 6373a10b41
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#ifndef lint
static const char *rcsid = "$Id: extract.c,v 1.13 1997/05/24 21:45:55 ache Exp $";
static const char *rcsid = "$Id: extract.c,v 1.14 1997/06/29 10:41:43 jkh Exp $";
#endif
/*
@ -123,7 +123,7 @@ extract_plist(char *home, Package *pkg)
/* first try to rename it into place */
sprintf(try, "%s/%s", Directory, p->name);
if (preserve) {
if (preserve && fexists(try)) {
char pf[FILENAME_MAX];
if (!PkgName) {