pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/delete Remove warning on In...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae442597b2fa
branches:  trunk
changeset: 471658:ae442597b2fa
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Mar 29 20:28:05 2004 +0000

description:
Remove warning on Interix; OK'd by hubertf.

diffstat:

 pkgtools/pkg_install/files/delete/main.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 5363288a7bd9 -r ae442597b2fa pkgtools/pkg_install/files/delete/main.c
--- a/pkgtools/pkg_install/files/delete/main.c  Mon Mar 29 20:27:46 2004 +0000
+++ b/pkgtools/pkg_install/files/delete/main.c  Mon Mar 29 20:28:05 2004 +0000
@@ -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 @@
                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



Home | Main Index | Thread Index | Old Index