Skip to content

Commit 1a53232

Browse files
committed
Setup localization for utility symlinks
If we are invoked via utility symlinks such as "ln", we need to setup localization before calling the utility's main function. Fixes: #8332
1 parent 1a8f99f commit 1a53232

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/coreutils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ fn main() {
108108

109109
// binary name equals util name?
110110
if let Some(&(uumain, _)) = utils.get(binary_as_util) {
111+
setup_localization_or_exit(binary_as_util);
111112
process::exit(uumain(vec![binary.into()].into_iter().chain(args)));
112113
}
113114

0 commit comments

Comments
 (0)