[DRBD-cvs] svn commit by phil - r2679 - trunk/scripts - Redirecting stderr here is a bug.

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Wed Jan 10 11:55:50 CET 2007


Author: phil
Date: 2007-01-10 11:55:49 +0100 (Wed, 10 Jan 2007)
New Revision: 2679

Modified:
   trunk/scripts/drbddisk
Log:
Redirecting stderr here is a bug.


Modified: trunk/scripts/drbddisk
===================================================================
--- trunk/scripts/drbddisk	2007-01-09 21:21:12 UTC (rev 2678)
+++ trunk/scripts/drbddisk	2007-01-10 10:55:49 UTC (rev 2679)
@@ -41,7 +41,7 @@
 	    echo "A resource name is required for status inquiries."
 	    exit 10
 	fi
-	ST=$( $DRBDADM state $RES 2>&1 )
+	ST=$( $DRBDADM state $RES )
 	STATE=${ST%/*}
 	if [ "$STATE" = "Primary" ]; then
 	    echo "running"



More information about the drbd-cvs mailing list