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:
782f3a3
)
inspect: Look for %systemroot%/system32 for Windows heuristic.
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 21 Apr 2011 16:33:48 +0000
(17:33 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 21 Apr 2011 16:33:48 +0000
(17:33 +0100)
The virt-v2v transfer ISO had a /windows directory. The core
inspection code thought this was a Windows root filesystem.
src/inspect_fs.c
patch
|
blob
|
history
diff --git
a/src/inspect_fs.c
b/src/inspect_fs.c
index
d258ec4
..
ff54634
100644
(file)
--- a/
src/inspect_fs.c
+++ b/
src/inspect_fs.c
@@
-223,9
+223,9
@@
check_filesystem (guestfs_h *g, const char *device,
* would *not* be Windows root disks. (RHBZ#674130)
*/
else if (is_file_nocase (g, "/AUTOEXEC.BAT") > 0 ||
- is_dir_nocase (g, "/WINDOWS") > 0 ||
- is_dir_nocase (g, "/WIN32") > 0 ||
- is_dir_nocase (g, "/WINNT") > 0 ||
+ is_dir_nocase (g, "/WINDOWS
/SYSTEM32
") > 0 ||
+ is_dir_nocase (g, "/WIN32
/SYSTEM32
") > 0 ||
+ is_dir_nocase (g, "/WINNT
/SYSTEM32
") > 0 ||
is_file_nocase (g, "/boot.ini") > 0 ||
is_file_nocase (g, "/ntldr") > 0) {
fs->is_root = 1;