mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00: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>
|
Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
* configure.in, qemud/Makefile.am: Added a --without-libvirtd
|
* configure.in, qemud/Makefile.am: Added a --without-libvirtd
|
||||||
|
@ -5054,8 +5054,9 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
vshReadlineInit();
|
vshReadlineInit();
|
||||||
do {
|
do {
|
||||||
|
const char *prompt = ctl->readonly ? VSH_PROMPT_RO : VSH_PROMPT_RW;
|
||||||
ctl->cmdstr =
|
ctl->cmdstr =
|
||||||
vshReadline(ctl, ctl->uid == 0 ? VSH_PROMPT_RW : VSH_PROMPT_RO);
|
vshReadline(ctl, prompt);
|
||||||
if (ctl->cmdstr == NULL)
|
if (ctl->cmdstr == NULL)
|
||||||
break; /* EOF */
|
break; /* EOF */
|
||||||
if (*ctl->cmdstr) {
|
if (*ctl->cmdstr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user