diff options
Diffstat (limited to 'libbb/remove_file.c')
-rw-r--r-- | libbb/remove_file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/remove_file.c b/libbb/remove_file.c index 8b14f07c9..da1488544 100644 --- a/libbb/remove_file.c +++ b/libbb/remove_file.c | |||
@@ -17,11 +17,11 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
17 | 17 | ||
18 | if (lstat(path, &path_stat) < 0) { | 18 | if (lstat(path, &path_stat) < 0) { |
19 | if (errno != ENOENT) { | 19 | if (errno != ENOENT) { |
20 | bb_perror_msg("cannot stat '%s'", path); | 20 | bb_perror_msg("can't stat '%s'", path); |
21 | return -1; | 21 | return -1; |
22 | } | 22 | } |
23 | if (!(flags & FILEUTILS_FORCE)) { | 23 | if (!(flags & FILEUTILS_FORCE)) { |
24 | bb_perror_msg("cannot remove '%s'", path); | 24 | bb_perror_msg("can't remove '%s'", path); |
25 | return -1; | 25 | return -1; |
26 | } | 26 | } |
27 | return 0; | 27 | return 0; |
@@ -63,7 +63,7 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
63 | } | 63 | } |
64 | 64 | ||
65 | if (closedir(dp) < 0) { | 65 | if (closedir(dp) < 0) { |
66 | bb_perror_msg("cannot close '%s'", path); | 66 | bb_perror_msg("can't close '%s'", path); |
67 | return -1; | 67 | return -1; |
68 | } | 68 | } |
69 | 69 | ||
@@ -74,7 +74,7 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
74 | } | 74 | } |
75 | 75 | ||
76 | if (rmdir(path) < 0) { | 76 | if (rmdir(path) < 0) { |
77 | bb_perror_msg("cannot remove '%s'", path); | 77 | bb_perror_msg("can't remove '%s'", path); |
78 | return -1; | 78 | return -1; |
79 | } | 79 | } |
80 | 80 | ||
@@ -94,7 +94,7 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
94 | } | 94 | } |
95 | 95 | ||
96 | if (unlink(path) < 0) { | 96 | if (unlink(path) < 0) { |
97 | bb_perror_msg("cannot remove '%s'", path); | 97 | bb_perror_msg("can't remove '%s'", path); |
98 | return -1; | 98 | return -1; |
99 | } | 99 | } |
100 | 100 | ||