summaryrefslogtreecommitdiffstats
path: root/tools/virt-win-reg
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-05-17 22:54:20 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-05-17 22:54:20 +0100
commit94d1dfde2793dccdcaf105d77c6135cdae70fa5e (patch)
tree010d4cd37f2844d969144bfd4d2e9d88fe5151da /tools/virt-win-reg
parent4a6890d824b6bcb811e0dca9a0e77d81451a9056 (diff)
downloadlibguestfs-94d1dfde2793dccdcaf105d77c6135cdae70fa5e.tar.gz
libguestfs-94d1dfde2793dccdcaf105d77c6135cdae70fa5e.tar.xz
libguestfs-94d1dfde2793dccdcaf105d77c6135cdae70fa5e.zip
virt-win-reg: Win XP paths can contain %systemdrive%.
Diffstat (limited to 'tools/virt-win-reg')
-rwxr-xr-xtools/virt-win-reg7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/virt-win-reg b/tools/virt-win-reg
index 56dd6d64..17c42a16 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;