File git-12-80d14205f913cc67a98c562f988ea700a56c369b.patch of Package aaa_base.12878

commit 80d14205f913cc67a98c562f988ea700a56c369b
Author: Ruediger Oertel <ro@suse.de>
Date:   Wed Oct 16 17:02:39 2019 +0200

    service: check if there is a second argument before using it
    (bsc#1051143)

diff --git a/files/usr/sbin/service b/files/usr/sbin/service
index 24cc6cc..7ee2dd3 100755
--- a/files/usr/sbin/service
+++ b/files/usr/sbin/service
@@ -103,7 +103,7 @@ exec_rc ()
 		fi
 		echo "$1 is neither service nor target!?" >&2
 		return "1"
-	elif [ -x "$actiondir/$1/$2" ]; then
+	elif [ -n "$2" -a -x "$actiondir/$1/$2" ]; then
 		rc="$actiondir/$1/$2"
 		shift 2
 	elif [ ${0##*/} = service ] ; then