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 2c630bd11bee8fb5e683eab3022cd1e4747ffaa2..5df52c2be5af3b32f9d70bcf9ad7d9edd4c4fd09 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
 }