提交 efd495d6 编写于 作者: R Richard W.M. Jones

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.
上级 21e0a86f
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册