]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Jun 2017 10:34:22 +0000 (12:34 +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

(cherry picked from commit 2fa069e870c0e6f1daa2a08be5aacac7b1063a5e)

ctdb/config/functions

index a29daf58f6e6889d66cf453211599a6906fe25a4..885289adeb74ab90aa57906f863931b3829c530d 100755 (executable)
@@ -150,7 +150,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
 }