Repository navigation
du: let -P after --dereference-args win - #16014
Conversation
e07e579 to
1e0ea04
Compare
1e0ea04 to
58dc7fa
Compare
|
a bunch of jobs are failing |
f905743 to
8048890
Compare
|
Failure The Reason This is the known intermittent failure tracked in #15568: the report has the same command ( |
|
Failure The L10n/Build and Test (macos-latest, feat_os_unix) job (126024562428) failed in test_shred::test_shred_dash_wipes_stdout_file: Reason This PR only changes src/uu/du/src/du.rs and tests/by-util/test_du.rs; the failure is in an unrelated macOS-specific shred stdout test. It is not caused by the du change. Please rerun the job. |
GNU du lets the last of -P/--no-dereference and --dereference-args win, so
du --dereference-args -P danglingdoes not dereference the dangling symlink argument and succeeds. uutils always let --dereference-args win and failed with "cannot access".This makes the dereference flags (-L, --dereference-args, -P) mutually override so the last one on the command line wins, matching GNU.
Adds a regression test.
Closes #16003