diff options
author | tv <tv@pkgsrc.org> | 2004-03-29 20:28:05 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2004-03-29 20:28:05 +0000 |
commit | 9838e3648617d482895c6a3a850d7bf2024ff944 (patch) | |
tree | e18237d511e749605998b4b538e3ea29aac4ddf8 /pkgtools | |
parent | 203460b7e7be110a70b2ea0343e90a72cd37985a (diff) | |
download | pkgsrc-9838e3648617d482895c6a3a850d7bf2024ff944.tar.gz |
Remove warning on Interix; OK'd by hubertf.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/delete/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/delete/main.c b/pkgtools/pkg_install/files/delete/main.c index 4d79e4924db..c0cfeb2054d 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.12 2004/03/29 02:25:06 tv Exp $ */ +/* $NetBSD: main.c,v 1.13 2004/03/29 20:28:05 tv Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,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.12 2004/03/29 02:25:06 tv Exp $"); +__RCSID("$NetBSD: main.c,v 1.13 2004/03/29 20:28:05 tv Exp $"); #endif #endif @@ -184,9 +184,11 @@ main(int argc, char **argv) warnx("missing package name(s)"); usage(); } +#ifndef __INTERIX if (!Fake && getuid() != 0) { warnx("not running as root - trying to delete anyways"); } +#endif if (OnlyDeleteFromPkgDB) { /* Only delete the given packages' files from pkgdb, do not * touch the pkg itself. Used by "make reinstall" in |