[Rear-users] SF.net SVN: rear:[688] trunk/usr/share/rear/lib/layout-functions.sh

jhoekx at users.sourceforge.net jhoekx at users.sourceforge.net
Fri Jul 15 08:37:01 CEST 2011


Revision: 688
          http://rear.svn.sourceforge.net/rear/?rev=688&view=rev
Author:   jhoekx
Date:     2011-07-15 06:37:01 +0000 (Fri, 15 Jul 2011)

Log Message:
-----------
Fix warnings about bad file descriptors in get_version on boot on Arch Linux.

Modified Paths:
--------------
    trunk/usr/share/rear/lib/layout-functions.sh

Modified: trunk/usr/share/rear/lib/layout-functions.sh
===================================================================
--- trunk/usr/share/rear/lib/layout-functions.sh	2011-07-15 06:34:21 UTC (rev 687)
+++ trunk/usr/share/rear/lib/layout-functions.sh	2011-07-15 06:37:01 UTC (rev 688)
@@ -273,7 +273,7 @@
   local pos
   for pos in $(seq 0 $(( max -1 ))); do
     ### Arithmetic comparison
-    if (( 10#0${v1list[$pos]} >= 0 && 10#0${v2list[$pos]} >= 0 )) 2>&8; then
+    if (( 10#0${v1list[$pos]} >= 0 && 10#0${v2list[$pos]} >= 0 )) 2>/dev/null; then
 #      echo "pos $pos: arithm ${v1list[$pos]} vs ${v2list[$pos]}"
       if (( 10#0${v1list[$pos]} < 10#0${v2list[$pos]} )); then
         return 1


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list