Author: aschnell Date: Fri Nov 28 21:19:37 2008 New Revision: 53748
URL: http://svn.opensuse.org/viewcvs/yast?rev=53748&view=rev Log: - added some debug output
Modified: trunk/storage/libstorage/src/Storage.cc
Modified: trunk/storage/libstorage/src/Storage.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Storage.cc... ============================================================================== --- trunk/storage/libstorage/src/Storage.cc (original) +++ trunk/storage/libstorage/src/Storage.cc Fri Nov 28 21:19:37 2008 @@ -5481,14 +5481,17 @@ const char * files[] = { "boot.ini", "msdos.sys", "io.sys", "config.sys", "MSDOS.SYS", "IO.SYS", "bootmgr", "$Boot" }; - string f; unsigned i=0; while( !win && i<lengthof(files) ) + { + string f = mp + "/" + files[i]; + if (access(f.c_str(), R_OK) == 0) { - f = mp + "/" + files[i]; - win = access( f.c_str(), R_OK )==0; - i++; + y2mil("found windows file " << quote(f)); + win = true; } + i++; + } efi = vol->getFs()==VFAT && checkDir( mp + "/efi" ); if( efi ) win = false;
yast-commit@lists.opensuse.org