-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
du: errors on long filename #7217
Comments
I can pick this one up! I have a rough draft in progress that seems to be working okay. Seems like the move is going to be to change the current directory as needed to keep the path length small enough to avoid hitting an error when we call Line 315 in ee0d178
|
So it seems like there are two major approaches we could take here. The first approach would be to change directories as we perform our depth-first search, to keep the relative filenames short enough to avoid this error. However, this comes with a couple of snags:
The second approach would be to use something like I think the |
Environment: Ubuntu 24.04, uutils
main
branch (git commit 2430e2a), GNU coreutils v9.4Steps to reproduce:
What happens now: uutils
du
displays an error message about a long filename, and then an incorrect summary of the disk usage:What I expected to happen: GNU
du
displays the summary without error:Notes: this is causing a failure in the GNU test file
tests/du/long-from-unreadable.sh
.The text was updated successfully, but these errors were encountered: