[Lunar-commits] <lunar> Don't use stdin as this could be used by sub-lin

Peter de Ridder peter at lunar-linux.org
Sat Nov 3 23:45:50 CET 2012


commit dc368e85fe14a90e40bd33aeee41941584122198
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sat, 03 Nov 2012 15:45:50 -0700
URL: https://github.com/lunar-linux/lunar/commit/dc368e85fe14a90e40bd33aeee41941584122198

Don't use stdin as this could be used by sub-lin
---
  libs/depends.lunar | +2/-2     
  1 file changed, 2 insertions(+), 2 deletions(-)

--- a/libs/depends.lunar
+++ b/libs/depends.lunar
@@ -311,7 +311,7 @@ satisfy_depends()  {
   done
 
   # then parse $OPTS
-  while read LINE; do
+  while read -u3 LINE; do
     DEP_MODULE=$(echo $LINE | cut -d: -f2)
     DEP_STATUS=$(echo $LINE | cut -d: -f3)
         DEP_ON=$(echo $LINE | cut -d: -f5)
@@ -333,7 +333,7 @@ satisfy_depends()  {
     else
       OPTS="$OPTS $DEP_ON"
     fi
-  done < $TMP_FILE
+  done 3< $TMP_FILE
 
   temp_destroy $TMP_FILE
 }




More information about the Lunar-commits mailing list