diff options
-rw-r--r-- | libbb/find_root_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/find_root_device.c b/libbb/find_root_device.c index 654f17145..7cbac0c56 100644 --- a/libbb/find_root_device.c +++ b/libbb/find_root_device.c | |||
@@ -48,13 +48,13 @@ extern char *find_real_root_device_name(const char* name) | |||
48 | bb_perror_msg("could not open '/dev'"); | 48 | bb_perror_msg("could not open '/dev'"); |
49 | else { | 49 | else { |
50 | while((entry = readdir(dir)) != NULL) { | 50 | while((entry = readdir(dir)) != NULL) { |
51 | const char *name = entry->d_name; | 51 | const char *myname = entry->d_name; |
52 | /* Must skip ".." since that is "/", and so we | 52 | /* Must skip ".." since that is "/", and so we |
53 | * would get a false positive on ".." */ | 53 | * would get a false positive on ".." */ |
54 | if (name[0] == '.' && name[1] == '.' && !name[2]) | 54 | if (myname[0] == '.' && myname[1] == '.' && !myname[2]) |
55 | continue; | 55 | continue; |
56 | 56 | ||
57 | fileName = concat_path_file("/dev", name); | 57 | fileName = concat_path_file("/dev", myname); |
58 | 58 | ||
59 | /* Some char devices have the same dev_t as block | 59 | /* Some char devices have the same dev_t as block |
60 | * devices, so make sure this is a block device */ | 60 | * devices, so make sure this is a block device */ |