accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject git commit: ACCUMULO-2993 fix division by zero
Date Mon, 14 Jul 2014 23:54:54 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 46f5e8c88 -> e7451ffe9


ACCUMULO-2993 fix division by zero

When given a filename, wc will output that filename, resulting in bad
division as the shell tries to interpret path separators. Instead, we
can have wc read from stdin.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/e7451ffe
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/e7451ffe
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/e7451ffe

Branch: refs/heads/master
Commit: e7451ffe978da9397a8ee6a6a1a6d62f6d379272
Parents: 46f5e8c
Author: Mike Drob <mdrob@cloudera.com>
Authored: Mon Jul 14 18:54:38 2014 -0500
Committer: Mike Drob <mdrob@cloudera.com>
Committed: Mon Jul 14 18:54:38 2014 -0500

----------------------------------------------------------------------
 assemble/bin/start-server.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/e7451ffe/assemble/bin/start-server.sh
----------------------------------------------------------------------
diff --git a/assemble/bin/start-server.sh b/assemble/bin/start-server.sh
index 2a2d96d..2afabb9 100755
--- a/assemble/bin/start-server.sh
+++ b/assemble/bin/start-server.sh
@@ -40,7 +40,7 @@ SERVICE=$2
 LONGNAME=$3
 [[ -z $LONGNAME ]] && LONGNAME=$2
 
-SLAVES=$(wc -l "${ACCUMULO_CONF_DIR}/slaves")
+SLAVES=$(wc -l < "${ACCUMULO_CONF_DIR}/slaves")
 
 IFCONFIG=/sbin/ifconfig
 [[ ! -x $IFCONFIG ]] && IFCONFIG='/bin/netstat -ie'


Mime
View raw message