We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef20a7 commit f3cd67bCopy full SHA for f3cd67b
src/uu/chroot/src/chroot.rs
@@ -56,7 +56,7 @@ struct Options {
56
fn parse_userspec(spec: &str) -> UResult<UserSpec> {
57
Ok(match spec.split_once(':') {
58
// ""
59
- None if spec == "" => UserSpec::NeitherGroupNorUser,
+ None if spec.is_empty() => UserSpec::NeitherGroupNorUser,
60
// "usr"
61
None => UserSpec::UserOnly(spec.to_string()),
62
// ":"
0 commit comments