mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
chown: Add crate walkdir
This commit is contained in:
@@ -12,7 +12,7 @@ getopts = "*"
|
||||
glob = "*"
|
||||
libc = "*"
|
||||
uucore = { path="../uucore" }
|
||||
clippy = {version = "*", optional = true}
|
||||
walkdir = "0.1"
|
||||
|
||||
[[bin]]
|
||||
name = "chown"
|
||||
|
||||
@@ -18,6 +18,7 @@ macro_rules! gen_func {
|
||||
if !data.is_null() {
|
||||
return Ok(id);
|
||||
} else {
|
||||
// last_os_error() returns success
|
||||
return Err(Error::new(ErrorKind::NotFound, format!("No such id `{}`", id)));
|
||||
}
|
||||
} else {
|
||||
@@ -30,6 +31,7 @@ macro_rules! gen_func {
|
||||
ptr::read(data).$field
|
||||
});
|
||||
} else {
|
||||
// last_os_error() returns success
|
||||
return Err(Error::new(ErrorKind::NotFound, format!("No such name `{}`", name_or_id)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user