diff --git a/dev/src/uu_cp/copydir.rs.html b/dev/src/uu_cp/copydir.rs.html index 116206603..d29fe02d3 100644 --- a/dev/src/uu_cp/copydir.rs.html +++ b/dev/src/uu_cp/copydir.rs.html @@ -549,7 +549,7 @@ fn new(root: &'a Path, target: &'a Path) -> std::io::Result<Self> { let current_dir = env::current_dir()?; let root_path = current_dir.join(root); - let root_parent = if target.exists() { + let root_parent = if target.exists() && !root.to_str().unwrap().ends_with("/.") { root_path.parent().map(|p| p.to_path_buf()) } else { Some(root_path) diff --git a/dev/src/uu_uptime/uptime.rs.html b/dev/src/uu_uptime/uptime.rs.html index 282551188..1c91890bc 100644 --- a/dev/src/uu_uptime/uptime.rs.html +++ b/dev/src/uu_uptime/uptime.rs.html @@ -304,8 +304,8 @@ USER_PROCESS => nusers += 1, BOOT_TIME => { let dt = line.login_time(); - if dt.second() > 0 { - boot_time = Some(dt.second() as time_t); + if dt.unix_timestamp() > 0 { + boot_time = Some(dt.unix_timestamp() as time_t); } } _ => continue,