chore: rename uid to user column in ls --long (#9407)

Fixes: #9389
This commit is contained in:
Amirhossein Akhlaghpour 2023-06-11 19:32:08 +03:30 committed by GitHub
parent be53ecbbaa
commit 73921f4bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ pub(crate) fn dir_entry_dict(
span,
});
cols.push("uid".into());
cols.push("user".into());
if let Some(user) = users::get_user_by_uid(md.uid()) {
vals.push(Value::String {
val: user.name().to_string_lossy().into(),

View File

@ -363,7 +363,7 @@ fn list_all_columns() {
"mode",
"num_links",
"inode",
"uid",
"user",
"group",
"size",
"created",