summaryrefslogtreecommitdiffstats
path: root/bin/mv/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mv/mv.c')
-rw-r--r--bin/mv/mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 5f0f28b..903ce7b 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -221,7 +221,7 @@ do_move(from, to)
* it's a regular file, do the copy internally; otherwise, use
* cp and rm.
*/
- if (stat(from, &sb)) {
+ if (lstat(from, &sb)) {
warn("%s", from);
return (1);
}
OpenPOWER on IntegriCloud