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 Pull over 1.36 from ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1bf90b2af4d8
branches: trunk
changeset: 510779:1bf90b2af4d8
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Apr 04 06:27:13 2006 +0000
description:
Pull over 1.36 from src/usr.sbin:
revision 1.36
date: 2005/12/03 01:08:38; author: hubertf; state: Exp; lines: +3 -3
Only warn about running as non-root when -v is given
(or when running in non-unprivilegedmode, but how to detect?)
diffstat:
pkgtools/pkg_install/files/delete/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1501894333d9 -r 1bf90b2af4d8 pkgtools/pkg_install/files/delete/main.c
--- a/pkgtools/pkg_install/files/delete/main.c Tue Apr 04 06:25:59 2006 +0000
+++ b/pkgtools/pkg_install/files/delete/main.c Tue Apr 04 06:27:13 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.16 2004/12/29 12:16:56 agc Exp $ */
+/* $NetBSD: main.c,v 1.17 2006/04/04 06:27:13 wiz 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.16 2004/12/29 12:16:56 agc Exp $");
+__RCSID("$NetBSD: main.c,v 1.17 2006/04/04 06:27:13 wiz Exp $");
#endif
#endif
@@ -191,7 +191,7 @@
usage();
}
#ifndef __INTERIX
- if (!Fake && getuid() != 0) {
+ if (!Fake && Verbose && getuid() != 0) {
warnx("not running as root - trying to delete anyways");
}
#endif
Home |
Main Index |
Thread Index |
Old Index