summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-19 08:43:39 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-20 15:20:56 +0100
commit62d3f7ba59ea89036962e08feacaa920f687cbbc (patch)
tree33668e084bb668f2f403b130526398b8925d6552
parent6c2fa3451f35f8d78a31689044b2d19efa4eaca2 (diff)
scripts: remove CVS header from getent
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rwxr-xr-xextra/scripts/getent4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/scripts/getent b/extra/scripts/getent
index 30d515b7e..5c482a071 100755
--- a/extra/scripts/getent
+++ b/extra/scripts/getent
@@ -1,5 +1,4 @@
#!/bin/sh
-# $Header: /var/cvs/uClibc/extra/scripts/getent,v 1.2 2005/02/02 14:18:01 solar Exp $
#
# Closely (not perfectly) emulate the behavior of glibc's getent utility
#
@@ -9,7 +8,8 @@
# case-insensitive matches not supported (ethers; others?)
# may return false-positives (hosts,protocols,rpc,services,ethers)
-export PATH="${PATH}:/bin:/usr/bin"
+[ -z "$PATH" ] && PATH="/bin:/usr/bin" || PATH="${PATH}:/bin:/usr/bin"
+export PATH
file="/etc/$1"
case $1 in