Mercurial > hg > Applications > virsh-wrapper
diff ie-virsh.c @ 19:7b4cdb0c9a99
unknown changed
author | taiki |
---|---|
date | Mon, 10 Feb 2014 04:30:48 -1000 |
parents | 12c32e47724d |
children | 13646e64d98b |
line wrap: on
line diff
--- a/ie-virsh.c Mon Dec 09 00:31:41 2013 -1000 +++ b/ie-virsh.c Mon Feb 10 04:30:48 2014 -1000 @@ -94,6 +94,7 @@ ('/'==c ) || ('-'==c )) continue; return 1; + printf("%c", c); } return 0; } @@ -142,7 +143,6 @@ setgid(0); setuid(0); - if (argc>=3) { if ( strncmp(argv[1], "define", 6) == 0 ) { if (regexec(pattern, argv[2], (size_t) 0, NULL, 0)) { @@ -201,12 +201,12 @@ perror("Execl:"); } } else if ( strncmp(argv[1], "define", 6) == 0 ) { - chdir("/etc/libvirt/qemu"); + chdir("/usr/local/etc/libvirt/qemu"); if (execl(command, command, define_command, name_xml, NULL) < 0) { perror("Execl:"); } } else if ( strncmp(argv[1], "undefine", 8) == 0 ) { - chdir("/etc/libvirt/qemu"); + chdir("/usr/local/etc/libvirt/qemu"); if (execl(command, command, undefine_command, argv[2], NULL) < 0) { perror("Execl:"); }