Skip to content

Commit 95c7acb

Browse files
committed
deploy: f0e8d44
1 parent da189f1 commit 95c7acb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev/src/uu_cp/copydir.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
<span class="kw">fn </span>new(root: <span class="kw-2">&amp;</span><span class="lifetime">&#39;a </span>Path, target: <span class="kw-2">&amp;</span><span class="lifetime">&#39;a </span>Path) -&gt; std::io::Result&lt;<span class="self">Self</span>&gt; {
550550
<span class="kw">let </span>current_dir = env::current_dir()<span class="question-mark">?</span>;
551551
<span class="kw">let </span>root_path = current_dir.join(root);
552-
<span class="kw">let </span>root_parent = <span class="kw">if </span>target.exists() {
552+
<span class="kw">let </span>root_parent = <span class="kw">if </span>target.exists() &amp;&amp; !root.to_str().unwrap().ends_with(<span class="string">&quot;/.&quot;</span>) {
553553
root_path.parent().map(|p| p.to_path_buf())
554554
} <span class="kw">else </span>{
555555
<span class="prelude-val">Some</span>(root_path)

dev/src/uu_uptime/uptime.rs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@
304304
USER_PROCESS =&gt; nusers += <span class="number">1</span>,
305305
BOOT_TIME =&gt; {
306306
<span class="kw">let </span>dt = line.login_time();
307-
<span class="kw">if </span>dt.second() &gt; <span class="number">0 </span>{
308-
boot_time = <span class="prelude-val">Some</span>(dt.second() <span class="kw">as </span>time_t);
307+
<span class="kw">if </span>dt.unix_timestamp() &gt; <span class="number">0 </span>{
308+
boot_time = <span class="prelude-val">Some</span>(dt.unix_timestamp() <span class="kw">as </span>time_t);
309309
}
310310
}
311311
<span class="kw">_ </span>=&gt; <span class="kw">continue</span>,

0 commit comments

Comments
 (0)