X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-win-reg;h=c9597e7fac9795a15d02879845e43e6f5d5b2bcd;hb=025dba7f803419f510fd8f085ce693838af82878;hp=333bd1583d3cdfedba4517b5147d079df4aca2a7;hpb=2dbe26c372fe102b4c77cb6a3ecfa435117a4ec3;p=libguestfs.git diff --git a/tools/virt-win-reg b/tools/virt-win-reg index 333bd15..c9597e7 100755 --- a/tools/virt-win-reg +++ b/tools/virt-win-reg @@ -125,7 +125,9 @@ Enable debugging messages. my $uri; -=item B<--connect URI> | B<-c URI> +=item B<-c URI> + +=item B<--connect URI> If using libvirt, connect to the given I. If omitted, then we connect to the default libvirt hypervisor. @@ -483,10 +485,11 @@ sub lookup_pip_of_user_sid chomp; # The contents of the registry are a windows path, possibly - # containing %systemroot%. Expand it and remove some other - # windows-isms. The caller will do case_sensitive_path for us, so - # we don't need to do that. - s/%systemroot%/$systemroot/; + # containing %systemroot% and %systemdrive% (on Win XP). Expand + # it and remove some other windows-isms. The caller will do + # case_sensitive_path for us, so we don't need to do that. + s/%systemroot%/$systemroot/i; + s/%systemdrive%//i; s/^c://i; s,\\,/,g;