summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-02-20 11:04:26 +0000
committerobache <obache@pkgsrc.org>2013-02-20 11:04:26 +0000
commitc8843f335944e9ec0905db9d6e3bcabaf19c5320 (patch)
tree22bd5b34ed731c5609c034e4e91ee11b193f91c8 /bootstrap/bootstrap
parent6f8c880088a72161e3af4535863cf9d074bf48eb (diff)
downloadpkgsrc-c8843f335944e9ec0905db9d6e3bcabaf19c5320.tar.gz
Fixes reverse condition of is_root() for Cygwin.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 1f445157ff3..4180694a29a 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.187 2013/02/20 10:59:36 obache Exp $
+# $NetBSD: bootstrap,v 1.188 2013/02/20 11:04:26 obache Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -470,9 +470,9 @@ AIX)
CYGWIN_*)
is_root () {
if id -nG | grep -q 'Administrators'; then
- return 1
+ return 0
fi
- return 0
+ return 1
}
root_user=`id -u`
root_group=`id -g Administrator`