Changes in uspace/app/bdsh/cmds/modules/rm/rm.c [6afc9d7:86cf96d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/rm/rm.c
r6afc9d7 r86cf96d 27 27 */ 28 28 29 #include <errno.h>30 29 #include <stdio.h> 31 30 #include <stdlib.h> … … 132 131 static unsigned int rm_single(const char *path) 133 132 { 134 if (unlink(path) != 0) {133 if (unlink(path)) { 135 134 cli_error(CL_EFAIL, "rm: could not remove file %s", path); 136 135 return 1; … … 151 150 152 151 fd = open(path, O_RDONLY); 153 if (fd > =0) {152 if (fd > 0) { 154 153 close(fd); 155 154 return RM_FILE; … … 211 210 rc = rmdir(path); 212 211 if (rc == 0) 213 return errno;212 return ret; 214 213 215 214 cli_error(CL_ENOTSUP, "Can not remove %s", path);
Note:
See TracChangeset
for help on using the changeset viewer.