From 0a53544b618cf0303e39450a25d3532aacdf1135 Mon Sep 17 00:00:00 2001
From: Chandrashekhar Nandi <Chandrashekhar.Nandi@mphasis.com>
Date: Tue, 6 May 2014 16:36:51 -0600
Subject: [PATCH] sendfile01: Corrected mc_gethost argument

Signed-off-by: Chandrashekhar Nandi <Chandrashekhar.Nandi@mphasis.com>

diff --git a/testcases/network/tcp_cmds/sendfile/sendfile01 b/testcases/network/tcp_cmds/sendfile/sendfile01
index 1598106..ad16290 100755
--- a/testcases/network/tcp_cmds/sendfile/sendfile01
+++ b/testcases/network/tcp_cmds/sendfile/sendfile01
@@ -61,7 +61,7 @@ do_setup()
 
     exists awk diff mc_gethost grep rsh stat
 
-    if ! IPADDR=$(mc_gethost ${EXEC_SUFFIX:+6} $RHOST | awk 'BEGIN { ec=1 } /addresses:/ {print $2; ec=0 } END { exit ec }'); then
+    if ! IPADDR=$(mc_gethost ${EXEC_SUFFIX:+-6} $RHOST | awk 'BEGIN { ec=1 } /addresses:/ {print $2; ec=0 } END { exit ec }'); then
         # XXX (garrcoop): || exit 1 is there to prevent the test from hanging in the event of an install error.
         end_testcase "Failed to determine the appropriate IP address for the machine." || exit 1
     fi
-- 
1.7.10.4

