[Lunar-commits] <moonbase> boinc-svn: using getent passwd in BUILD ...

Christian Krause wookietreiber at lunar-linux.org
Wed May 11 00:26:00 CEST 2011


commit 9e0c33a49e94a3e368cdfa677456224098a3ff1f
Author: Christian Krause <wookietreiber at lunar-linux.org>
Date:   Wed May 11 00:26:00 2011 +0200

    boinc-svn: using getent passwd in BUILD ...
    
    ... should do better than /etc/passwd
---
 zbeta/boinc-svn/BUILD |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zbeta/boinc-svn/BUILD b/zbeta/boinc-svn/BUILD
index e7834f2..c27aebc 100644
--- a/zbeta/boinc-svn/BUILD
+++ b/zbeta/boinc-svn/BUILD
@@ -27,7 +27,7 @@
   default_build  &&
 
   # creates 'boinc' user if necessary
-  if grep "^boinc:" /etc/passwd > /dev/null; then
+  if getent passwd | grep "^boinc:" > /dev/null; then
     message "${MESSAGE_COLOR}user 'boinc' already exists${DEFAULT_COLOR}"
   else
     useradd --system               \


More information about the Lunar-commits mailing list