diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-25 19:48:34 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-25 19:48:34 +0200 |
commit | 0231e344273aafd02097eb71851bc7a078da5400 (patch) | |
tree | d2a2936dc9b2358e50060acb0c95bd673b8da7b3 | |
parent | 78645d8371e69ce82841b66aa5ef69c02055f5bc (diff) | |
download | busybox-w32-0231e344273aafd02097eb71851bc7a078da5400.tar.gz busybox-w32-0231e344273aafd02097eb71851bc7a078da5400.tar.bz2 busybox-w32-0231e344273aafd02097eb71851bc7a078da5400.zip |
ls: revert last change (short name must be allocated)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index aeb40548e..9e8561606 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -942,7 +942,7 @@ static struct dnode **scan_one_dir(const char *path, unsigned *nfiles_p) | |||
942 | } | 942 | } |
943 | } | 943 | } |
944 | fullname = concat_path_file(path, entry->d_name); | 944 | fullname = concat_path_file(path, entry->d_name); |
945 | cur = my_stat(fullname, entry->d_name, 0); | 945 | cur = my_stat(fullname, bb_basename(fullname), 0); |
946 | if (!cur) { | 946 | if (!cur) { |
947 | free(fullname); | 947 | free(fullname); |
948 | continue; | 948 | continue; |