Skip to content

Commit df2d272

Browse files
committed
chmod: fix error handling if multiple files are handled
1 parent 370ea74 commit df2d272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/chmod/src/chmod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ impl Chmoder {
415415
return Err(ChmodError::PreserveRoot("/".to_string()).into());
416416
}
417417
if self.recursive {
418-
r = self.walk_dir_with_context(file, true);
418+
r = self.walk_dir_with_context(file, true).and(r);
419419
} else {
420420
r = self.chmod_file(file).and(r);
421421
}

0 commit comments

Comments
 (0)