Skip to content

ln: avoid accessing by index & simplify if - #14197

Merged
sylvestre merged 1 commit into
uutils:mainfrom
oech3:ln-idx
Aug 29, 2026
Merged

ln: avoid accessing by index & simplify if#14197
sylvestre merged 1 commit into
uutils:mainfrom
oech3:ln-idx

Conversation

@oech3

@oech3 oech3 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@sylvestre
sylvestre enabled auto-merge (rebase) August 28, 2026 07:35
@sylvestre

Copy link
Copy Markdown
Contributor

Is it really better?

@oech3

oech3 commented Aug 28, 2026 via email

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/dd/misc. tests/dd/misc is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/df/over-mount-device. tests/df/over-mount-device is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/cat/splice is no longer failing!
Congrats! The gnu test tests/cp/cp-a-selinux is no longer failing!
Congrats! The gnu test tests/cut/cut is no longer failing!
Congrats! The gnu test tests/cut/mb-non-utf8 is no longer failing!
Congrats! The gnu test tests/dd/partial-write is no longer failing!
Congrats! The gnu test tests/expand/mb is no longer failing!
Congrats! The gnu test tests/ls/stat-free-symlinks is no longer failing!
Congrats! The gnu test tests/mktemp/write-error is no longer failing!
Congrats! The gnu test tests/mv/dir2dir is no longer failing!
Congrats! The gnu test tests/mv/mv-exchange is no longer failing!
Congrats! The gnu test tests/nl/multibyte is no longer failing!
Congrats! The gnu test tests/od/od-float is no longer failing!
Congrats! The gnu test tests/od/od-j is no longer failing!
Congrats! The gnu test tests/ptx/ptx-overrun is no longer failing!
Congrats! The gnu test tests/sort/sort-merge-fdlimit is no longer failing!
Congrats! The gnu test tests/unexpand/mb is no longer failing!
Note: The gnu test tests/dd/fail-ftruncate-fstat was skipped on 'main' but is now failing.

@xtqqczze

Copy link
Copy Markdown
Contributor

Conflicts with #12257, please convert to draft.

Comment thread src/uu/ln/src/ln.rs
return Err(LnError::ExtraOperand(
files[2].clone().into(),
match files {
[] => unreachable!("clap excluded it"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exec is a public API, we cannot say clap excluded this case

@sylvestre
sylvestre disabled auto-merge August 29, 2026 21:29
@sylvestre
sylvestre merged commit f3371ac into uutils:main Aug 29, 2026
99 of 100 checks passed
@oech3
oech3 deleted the ln-idx branch August 30, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants