Skip to content

Commit de9082f

Browse files
committed
bin/xbps-create: propagate walk_dir error
1 parent 9d3f559 commit de9082f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bin/xbps-create/main.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,16 +598,14 @@ walk_dir(const char *path,
598598
}
599599

600600
if (S_ISDIR(sb.st_mode)) {
601-
if (walk_dir(tmp_path, fn) < 0) {
602-
rv = -1;
601+
rv = walk_dir(tmp_path, fn);
602+
if (rv != 0)
603603
break;
604-
}
605604
}
606605

607606
rv = fn(tmp_path, &sb, list[i]);
608-
if (rv != 0) {
607+
if (rv != 0)
609608
break;
610-
}
611609

612610
}
613611
for (int i = n - 1; i >= 0; i--)

0 commit comments

Comments
 (0)