git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a6890d
)
virt-win-reg: Win XP paths can contain %systemdrive%.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 17 May 2011 21:54:20 +0000
(22:54 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 17 May 2011 21:54:20 +0000
(22:54 +0100)
tools/virt-win-reg
patch
|
blob
|
history
diff --git
a/tools/virt-win-reg
b/tools/virt-win-reg
index
56dd6d6
..
17c42a1
100755
(executable)
--- 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
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, s
o
- # 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 d
o
+ #
case_sensitive_path for us, so
we don't need to do that.
s/%systemroot%/$systemroot/i;
s/%systemroot%/$systemroot/i;
+ s/%systemdrive%//i;
s/^c://i;
s,\\,/,g;
s/^c://i;
s,\\,/,g;