summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-06-30 02:57:40 +0000
committerjkh <jkh@FreeBSD.org>1997-06-30 02:57:40 +0000
commit0a91728bd30aa3a8c095b9aaccd62ee440e4f096 (patch)
tree78bf46183d83df3dab9ee4f9c9f01815e2f02ad4 /usr.sbin/pkg_install
parent44f9e8d74163e10d755d7bf4d2a42e20d2d3ca4b (diff)
downloadFreeBSD-src-0a91728bd30aa3a8c095b9aaccd62ee440e4f096.zip
FreeBSD-src-0a91728bd30aa3a8c095b9aaccd62ee440e4f096.tar.gz
Whoops, only attempt to back up the file if it exists. :-}
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/add/extract.c4
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 03c7231..902510e 100644
--- a/usr.sbin/pkg_install/add/extract.c
+++ b/usr.sbin/pkg_install/add/extract.c
@@ -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) {
OpenPOWER on IntegriCloud