We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9082f commit e6e912bCopy full SHA for e6e912b
bin/xbps-create/main.c
@@ -593,9 +593,8 @@ walk_dir(const char *path,
593
strncpy(tmp_path, path, PATH_MAX - 1);
594
strncat(tmp_path, "/", PATH_MAX - 1 - strlen(tmp_path));
595
strncat(tmp_path, list[i]->d_name, PATH_MAX - 1 - strlen(tmp_path));
596
- if (lstat(tmp_path, &sb) < 0) {
597
- break;
598
- }
+ if (lstat(tmp_path, &sb) < 0)
+ die("lstat: %s", tmp_path);
599
600
if (S_ISDIR(sb.st_mode)) {
601
rv = walk_dir(tmp_path, fn);
0 commit comments