diff options
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index ad754c14d..2f9338f19 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -957,6 +957,11 @@ static struct dnode **scan_one_dir(const char *path, unsigned *nfiles_p) | |||
957 | continue; /* if only -A, skip . and .. but show other dotfiles */ | 957 | continue; /* if only -A, skip . and .. but show other dotfiles */ |
958 | } | 958 | } |
959 | } | 959 | } |
960 | #if ENABLE_PLATFORM_MINGW32 | ||
961 | if (has_dos_drive_prefix(path) && path[2] == '\0') | ||
962 | fullname = xasprintf("%s%s", path, entry->d_name); | ||
963 | else | ||
964 | #endif | ||
960 | fullname = concat_path_file(path, entry->d_name); | 965 | fullname = concat_path_file(path, entry->d_name); |
961 | cur = my_stat(fullname, bb_basename(fullname), 0); | 966 | cur = my_stat(fullname, bb_basename(fullname), 0); |
962 | #if !ENABLE_PLATFORM_MINGW32 | 967 | #if !ENABLE_PLATFORM_MINGW32 |