return gid and uid in numbers if name not found (#6684)

* return git and uid in numbers if name not found

* fmt
This commit is contained in:
pwygab 2022-10-10 20:29:16 +08:00 committed by GitHub
parent 34c8b276ab
commit 2f1711f783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,7 +491,10 @@ pub(crate) fn dir_entry_dict(
span,
});
} else {
vals.push(Value::nothing(span))
vals.push(Value::Int {
val: md.uid() as i64,
span,
})
}
cols.push("group".into());
@ -501,7 +504,10 @@ pub(crate) fn dir_entry_dict(
span,
});
} else {
vals.push(Value::nothing(span))
vals.push(Value::Int {
val: md.gid() as i64,
span,
})
}
}
}