summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/files
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-06-26 00:29:01 +0000
committerjschauma <jschauma@pkgsrc.org>2003-06-26 00:29:01 +0000
commit7a025a99c388d4b03d20f115471a1c0114bfae91 (patch)
tree0cf65697d5c72a9ddf90022883e41390d1f08061 /pkgtools/pkg_install/files
parent823f4ce8b15414c15d71e846e199bc68ba86cdcb (diff)
downloadpkgsrc-7a025a99c388d4b03d20f115471a1c0114bfae91.tar.gz
Synch with basesrc:
deleting as non-root works fine, so don't insist on running as root
Diffstat (limited to 'pkgtools/pkg_install/files')
-rw-r--r--pkgtools/pkg_install/files/delete/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/delete/main.c b/pkgtools/pkg_install/files/delete/main.c
index 2c72f8459a8..6d2c35c36d1 100644
--- a/pkgtools/pkg_install/files/delete/main.c
+++ b/pkgtools/pkg_install/files/delete/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.5 2003/01/14 15:18:34 jschauma Exp $ */
+/* $NetBSD: main.c,v 1.6 2003/06/26 00:29:01 jschauma Exp $ */
#if 0
#include <sys/cdefs.h>
@@ -6,7 +6,7 @@
#if 0
static char *rcsid = "from FreeBSD Id: main.c,v 1.11 1997/10/08 07:46:48 charnier Exp";
#else
-__RCSID("$NetBSD: main.c,v 1.5 2003/01/14 15:18:34 jschauma Exp $");
+__RCSID("$NetBSD: main.c,v 1.6 2003/06/26 00:29:01 jschauma Exp $");
#endif
#endif
#endif
@@ -173,7 +173,7 @@ main(int argc, char **argv)
usage();
}
if (!Fake && getuid() != 0) {
- errx(EXIT_FAILURE, "you must be root to delete packages");
+ warnx("not running as root - trying to delete anyways");
}
if (OnlyDeleteFromPkgDB) {
/* Only delete the given packages' files from pkgdb, do not