1
0
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:
Richard W.M. Jones 2007-12-06 16:36:21 +00:00
parent 21e0a86f25
commit efd495d667
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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) {