Skip to content

Conversation

@WaterWhisperer
Copy link
Contributor

@WaterWhisperer WaterWhisperer commented Dec 28, 2025

Fixes: #9871

Reproduce:

mkdir test && cd test
dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
ln file1 file1.1
dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
$ du .
84	.
$ du -l .
148
$ /bin/du .
84	.
$ /bin/du -l .
148

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/cp-mv-enotsup-xattr. tests/cp/cp-mv-enotsup-xattr is passing on 'main'. Maybe you have to rebase?
Note: The gnu test tests/csplit/csplit-io-err was skipped on 'main' but is now failing.

@anastygnome
Copy link
Contributor

Hey, could you add test code ?

@WaterWhisperer
Copy link
Contributor Author

Hey, could you add test code ?

Sure

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cp/cp-mv-enotsup-xattr. tests/cp/cp-mv-enotsup-xattr is passing on 'main'. Maybe you have to rebase?
Note: The gnu test tests/csplit/csplit-io-err was skipped on 'main' but is now failing.

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@sylvestre sylvestre merged commit 28ac732 into uutils:main Dec 30, 2025
128 checks passed
@sylvestre
Copy link
Contributor

thanks

naoNao89 pushed a commit to naoNao89/coreutils that referenced this pull request Dec 31, 2025
…tils#9884)

* du: fix -l/--count-links option not counting hardlinks separately

* du: add test for -l/--count-links counting hardlinks separately

---------

Co-authored-by: Sylvestre Ledru <[email protected]>
@WaterWhisperer WaterWhisperer deleted the du-count-links branch December 31, 2025 04:40
naoNao89 pushed a commit to naoNao89/coreutils that referenced this pull request Jan 1, 2026
…tils#9884)

* du: fix -l/--count-links option not counting hardlinks separately

* du: add test for -l/--count-links counting hardlinks separately

---------

Co-authored-by: Sylvestre Ledru <[email protected]>
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.

du: du -l doesn't count hardlinked files separately

3 participants