ctdb-scripts: Don't send empty argument string to logger
authorAmitay Isaacs <amitay@gmail.com>
Thu, 22 Jun 2017 04:34:36 +0000 (14:34 +1000)
committerMartin Schwenke <martins@samba.org>
Sat, 24 Jun 2017 12:37:48 +0000 (14:37 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12856

This stops logger reading from stdin.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Sat Jun 24 14:37:48 CEST 2017 on sn-devel-144

ctdb/config/functions

index 2c630bd..5df52c2 100755 (executable)
@@ -130,7 +130,7 @@ script_log ()
        *)
            # Handle all syslog:* variants here too.  There's no tool to do
            # the lossy things, so just use logger.
-           logger -t "ctdbd: ${_tag}" "$*"
+           logger -t "ctdbd: ${_tag}" "$@"
            ;;
     esac
 }