mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
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
This commit is contained in:
parent
1a8f99f7eb
commit
1a53232e71
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ fn main() {
|
|||
|
||||
// binary name equals util name?
|
||||
if let Some(&(uumain, _)) = utils.get(binary_as_util) {
|
||||
setup_localization_or_exit(binary_as_util);
|
||||
process::exit(uumain(vec![binary.into()].into_iter().chain(args)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue