mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
Thu Dec 6 16:32:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* src/virsh.c: The prompt should depend on readonly status, not on the UID.
This commit is contained in:
parent
21e0a86f25
commit
efd495d667
@ -1,3 +1,8 @@
|
||||
Thu Dec 6 16:32:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
* src/virsh.c: The prompt should depend on readonly status,
|
||||
not on the UID.
|
||||
|
||||
Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
* configure.in, qemud/Makefile.am: Added a --without-libvirtd
|
||||
|
@ -5054,8 +5054,9 @@ main(int argc, char **argv)
|
||||
}
|
||||
vshReadlineInit();
|
||||
do {
|
||||
const char *prompt = ctl->readonly ? VSH_PROMPT_RO : VSH_PROMPT_RW;
|
||||
ctl->cmdstr =
|
||||
vshReadline(ctl, ctl->uid == 0 ? VSH_PROMPT_RW : VSH_PROMPT_RO);
|
||||
vshReadline(ctl, prompt);
|
||||
if (ctl->cmdstr == NULL)
|
||||
break; /* EOF */
|
||||
if (*ctl->cmdstr) {
|
||||
|
Loading…
Reference in New Issue
Block a user