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/add Remove umask call and r...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5363288a7bd9
branches: trunk
changeset: 471657:5363288a7bd9
user: tv <tv%pkgsrc.org@localhost>
date: Mon Mar 29 20:27:46 2004 +0000
description:
Remove umask call and remove warning on Interix; OK'd by hubertf.
diffstat:
pkgtools/pkg_install/files/add/perform.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 1d7c4018dc8f -r 5363288a7bd9 pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c Mon Mar 29 19:49:34 2004 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c Mon Mar 29 20:27:46 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.17 2004/03/29 02:25:06 tv Exp $ */
+/* $NetBSD: perform.c,v 1.18 2004/03/29 20:27:46 tv Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.17 2004/03/29 02:25:06 tv Exp $");
+__RCSID("$NetBSD: perform.c,v 1.18 2004/03/29 20:27:46 tv Exp $");
#endif
#endif
@@ -720,9 +720,10 @@
if (!NoRecord && !Fake) {
char contents[FILENAME_MAX];
- umask(022);
+#ifndef __INTERIX
if (getuid() != 0)
warnx("not running as root - trying to record install anyway");
+#endif
if (!PkgName) {
warnx("no package name! can't record package, sorry");
errc = 1;
Home |
Main Index |
Thread Index |
Old Index