Fix return values in rm(1) and mv(1)

by setting rm_status to 1 if removing 1 file in the list fails.
Extend this to mv_status in mv(1).
This commit is contained in:
FRIGN
2015-01-30 12:45:54 +01:00
parent a9c7d16cde
commit e60885699c
4 changed files with 26 additions and 20 deletions

1
fs.h
View File

@@ -9,6 +9,7 @@ extern int cp_status;
extern int rm_fflag;
extern int rm_rflag;
extern int rm_status;
int cp(const char *, const char *);
void rm(const char *);