virt-manager fails if target system has no grep -q
Bug #792985 reported by
Richard Laager
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Marc Deslauriers | ||
virt-manager (Ubuntu) |
Fix Released
|
Undecided
|
Marc Deslauriers |
Bug Description
The nc -q autodetection code fails if the target system's grep does not have a -q argument (quite the ironic coincidence). I believe -q is specified by POSIX, but Solaris 11's /bin/grep does not support -q. Redirecting to /dev/null works portably. (In fact, this is even recommended in favor of -q for portability by GNU grep's man page.)
This needs to be changed in virt-manager's src/virtManager
BEFORE:
grep -q \"requires an argument\"
AFTER:
grep \"requires an argument\" >/dev/null
Related branches
description: | updated |
To post a comment you must log in.
This bug needs to be reported and fixed upstream. Could you please report the bug using the following instructions:
http:// virt-manager. org/page/ BugReporting
Once you've done so, please link the upstream bug here. Thanks.