mv: Prevent successful rename from forgetting past failure - sbase - suckless u… | |
git clone git://git.suckless.org/sbase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 688384568cba9f3e369434bf220b988da2f8357c | |
parent 1cc5a57fd7f0c72d9e4c383cfb5c7decf39fa346 | |
Author: Michael Forney <[email protected]> | |
Date: Fri, 30 Jul 2021 11:43:22 -0700 | |
mv: Prevent successful rename from forgetting past failure | |
Diffstat: | |
M mv.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/mv.c b/mv.c | |
@@ -16,7 +16,7 @@ mv(const char *s1, const char *s2, int depth) | |
struct recursor r = { .fn = rm, .follow = 'P' }; | |
if (!rename(s1, s2)) | |
- return (mv_status = 0); | |
+ return 0; | |
if (errno == EXDEV) { | |
cp_aflag = cp_rflag = cp_pflag = 1; | |
cp_follow = 'P'; |