X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-win-reg;h=17c42a16751f8342a5d1decf2b708a320df9f64e;hb=2ba2ddf2113db7bb2afe3f739dc3cbaa5416a4ba;hp=56dd6d643f6d2f176025af64bfd045e88a8ea416;hpb=4a6890d824b6bcb811e0dca9a0e77d81451a9056;p=libguestfs.git diff --git a/tools/virt-win-reg b/tools/virt-win-reg index 56dd6d6..17c42a1 100755 --- a/tools/virt-win-reg +++ b/tools/virt-win-reg @@ -483,10 +483,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. + # 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;