Vodz, last_patch_86

This commit is contained in:
Glenn L McGrath
2003-05-26 14:07:50 +00:00
parent ddfe18df75
commit 393183dccc
17 changed files with 121 additions and 115 deletions

View File

@@ -49,13 +49,10 @@ extern char *find_real_root_device_name(const char* name)
else {
while((entry = readdir(dir)) != NULL) {
/* Must skip ".." since that is "/", and so we
* would get a false positive on ".." */
if (strcmp(entry->d_name, "..") == 0)
fileName = concat_subpath_file("/dev", entry->d_name);
if(fileName == NULL)
continue;
fileName = concat_path_file("/dev", entry->d_name);
/* Some char devices have the same dev_t as block
* devices, so make sure this is a block device */
if (stat(fileName, &statBuf) == 0 &&