--- libvirt.orig/src/virsh.c 2007-07-26 17:41:16.000000000 +0900 +++ libvirt/src/virsh.c 2007-07-31 11:21:28.000000000 +0900 @@ -4651,6 +4651,9 @@ vshParseArgv(vshControl * ctl, int argc, break; case 'l': ctl->logfile = vshStrdup(ctl, optarg); + if (strncmp(ctl->logfile,"-",1) == 0) + vshError(ctl, TRUE, + _("Do not use the hyphen (-) at the head of log file name")); break; default: vshError(ctl, TRUE,