pkg/59981: xentools418 rc.d/xencommons: test: -z: unexpected operator
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.bugs |
|---|---|
| Message-ID | <[email protected]> |
>Number: 59981 >Category: pkg >Synopsis: xentools418 rc.d/xencommons: test: -z: unexpected operator >Confidential: no >Severity: serious >Priority: medium >Responsible: pkg-manager >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Feb 08 04:45:00 +0000 2026 >Originator: Taylor R Campbell >Release: >Organization: >Environment: >Description: # service xencommons status test: -z: unexpected operator xenstored is running as pid 1090. xenconsoled is not running. Arises from these conditionals -- first one is fine, second one is not: if test -n "$xenconsoled_pid" -a -n "$xenstored_pid"; then echo "xencommons are running as pids $pids." return 0 fi if test -a -z "$xenconsoled_pid" -a -z "$xenstored_pid"; then echo "xencommons are not running." return 0 fi >How-To-Repeat: service xencommons status >Fix: change `test -a -z ...' to `test -z ...'