virt-win-reg: systemroot macro should be replaced case insensitive.
[libguestfs.git] / tools / virt-win-reg
index 333bd15..56dd6d6 100755 (executable)
@@ -486,7 +486,7 @@ sub lookup_pip_of_user_sid
     # 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/;
+    s/%systemroot%/$systemroot/i;
     s/^c://i;
     s,\\,/,g;