-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
Long path name in NTFS will cause Bad address (os error 14) #893
Comments
I can reproduce, and it also makes starship crash, so it may something Rust-related. |
There error comes from exa here: Line 42 in a6754f3
I believe comes from Rust here: Edit: minimal reproduction case: use std::env;
use std::fs::{self, ReadDir};
fn main() {
test().unwrap();
}
fn test() -> std::io::Result<ReadDir> {
let args: Vec<String> = env::args().collect();
for result in fs::read_dir(&args[1])? {
result.map(|entry| entry.path()).unwrap();
}
todo!()
} it gives |
It’s been fixed upstream! 🎉
It works when compiled with Rust beta, so I’ll close this, but you’ll have to wait for a version of exa compiled with a recent Rust (or build one yourself). Thanks for the bug report, it helped fix a bug in Rust upstream and improve exa! |
If exa does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:
exa --version
)v0.10.1 [+git]
exa
If it’s a crash, please include the full text of the crash that gets printed to the screen. If you’re seeing unexpected behaviour, a screenshot of the issue will help a lot.
with debug flag
I have both fs, ntfs & ext4, in my system:
When I create a folder with long name in Mate Desktop until it cause "name too long error".
In ext4 the maximum name length is
/media/flandre/dev-ext4-1t/一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五
and in
/media/flandre/dev-ext4-1t/
callexa
is ok.The main problem is in ntfs.
The maximum name length is
/media/flandre/021440A176AA6AA3/long/一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五
and in/media/flandre/021440A176AA6AA3/long/
callexa
will show".": Bad address (os error 14)
I test the minimal length will cause this error:
/media/flandre/021440A176AA6AA3/long/一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六
Here is some screenshot with Mint File Manager (caja) and Terminal:
Show the maximum availible name length in DE:
Show the minimum name length that cause the error:
Work in long name folder which have short name files:
The text was updated successfully, but these errors were encountered: