Fix ls build.

This commit is contained in:
Andreas Kling 2018-10-31 15:52:24 +01:00
parent 9160fd0d47
commit 71c9b09e8c
Notes: sideshowbarker 2024-07-19 18:35:54 +09:00

View file

@ -17,7 +17,7 @@ int main(int c, char** v)
while (auto* de = readdir(dirp)) {
sprintf(pathbuf, "%s", de->d_name);
stat st;
struct stat st;
int rc = lstat(pathbuf, &st);
if (rc == -1) {
printf("lstat(%s) failed: %s\n", pathbuf, strerror(errno));