summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-06-26 00:29:01 +0000
committerjschauma <jschauma>2003-06-26 00:29:01 +0000
commitfd241f28f80ba22e8da45ea285d4337823e8df85 (patch)
tree0cf65697d5c72a9ddf90022883e41390d1f08061 /pkgtools
parentc5923be88813603d712ac644b1968301a00c6726 (diff)
downloadpkgsrc-fd241f28f80ba22e8da45ea285d4337823e8df85.tar.gz
Synch with basesrc:
deleting as non-root works fine, so don't insist on running as root
Diffstat (limited to 'pkgtools')
-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