From c5b59392b3bd1f765e8c218fe142b091c31457c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nagy=20K=C3=A1roly=20G=C3=A1briel?= Date: Sat, 23 Apr 2016 16:24:41 +0300 Subject: [PATCH] lib/libsde.in: replaced the getent call with grep. --- lib/libsde.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libsde.in b/lib/libsde.in index a779f6b..315514e 100644 --- a/lib/libsde.in +++ b/lib/libsde.in @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: lib/libsde.in -# Copyright (C) 2006 - 2015 The OpenSDE Project +# Copyright (C) 2006 - 2016 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -25,7 +25,7 @@ sdever=$("$SDEROOT/lib/version.sh") # if [ -z "$SDESETTINGS" ]; then if [ -n "$SUDO_USER" ]; then - SDESETTINGS="$( getent passwd $SUDO_USER | cut -d: -f6)/.sde/settings" + SDESETTINGS="$( grep -m 1 "^$SUDO_USER:" /etc/passwd | cut -d: -f6)/.sde/settings" else SDESETTINGS="$HOME/.sde/settings" fi