Introduction
Introduction Statistics Contact Development Disclaimer Help
mv: Move on to other files if rename fails with something other than EXDEV - sb…
git clone git://git.suckless.org/sbase
Log
Files
Refs
README
LICENSE
---
commit 7d60e2cabbe07495ee74f3d5e705f1e3470148eb
parent df6599ef784ba71420c2e06b0c9b21fb74654ad7
Author: Michael Forney <[email protected]>
Date: Fri, 30 Jul 2021 12:18:32 -0700
mv: Move on to other files if rename fails with something other than EXDEV
Diffstat:
M mv.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/mv.c b/mv.c
@@ -27,11 +27,12 @@ mv(const char *s1, const char *s2, int depth)
recurse(AT_FDCWD, s1, NULL, &r);
if (cp_status || rm_status)
mv_status = 1;
- return 0;
+ } else {
+ weprintf("%s -> %s:", s1, s2);
+ mv_status = 1;
}
- mv_status = 1;
- return -1;
+ return 0;
}
static void
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.