Browse Source

just exec the cat

Mike Frysinger 18 năm trước cách đây
mục cha
commit
d37d6496c7
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      extra/scripts/getent

+ 1 - 2
extra/scripts/getent

@@ -65,8 +65,7 @@ case $1 in
 esac
 
 if [ -z "$2" ] ; then
-  cat $file
-  retval=$?
+  exec cat $file
 else
   search_entry "$file" "$2"
 fi