rodata cleanup. "unable to" == "cannot". -300 bytes
This commit is contained in:
@@ -27,7 +27,7 @@ int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf)
|
||||
{
|
||||
if (sf(fn, fn_stat) < 0) {
|
||||
if (errno != ENOENT) {
|
||||
bb_perror_msg("unable to stat '%s'", fn);
|
||||
bb_perror_msg("cannot stat '%s'", fn);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
@@ -44,7 +44,7 @@ int mkdir_main (int argc, char **argv)
|
||||
if(opt & 1) {
|
||||
mode = 0777;
|
||||
if (!bb_parse_mode (smode, &mode)) {
|
||||
bb_error_msg_and_die ("invalid mode `%s'", smode);
|
||||
bb_error_msg_and_die ("invalid mode '%s'", smode);
|
||||
}
|
||||
}
|
||||
if(opt & 2)
|
||||
|
@@ -38,7 +38,7 @@ int rm_main(int argc, char **argv)
|
||||
const char *base = bb_get_last_path_component(*argv);
|
||||
|
||||
if ((base[0] == '.') && (!base[1] || ((base[1] == '.') && !base[2]))) {
|
||||
bb_error_msg("cannot remove `.' or `..'");
|
||||
bb_error_msg("cannot remove '.' or '..'");
|
||||
} else if (remove_file(*argv, flags) >= 0) {
|
||||
continue;
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@ int rmdir_main(int argc, char **argv)
|
||||
|
||||
do {
|
||||
if (rmdir(path) < 0) {
|
||||
bb_perror_msg("`%s'", path); /* Match gnu rmdir msg. */
|
||||
bb_perror_msg("'%s'", path); /* Match gnu rmdir msg. */
|
||||
status = EXIT_FAILURE;
|
||||
} else if (flags) {
|
||||
/* Note: path was not empty or null since rmdir succeeded. */
|
||||
@@ -46,7 +46,7 @@ int rmdir_main(int argc, char **argv)
|
||||
/* Path is now just the parent component. Note that dirname
|
||||
* returns "." if there are no parents. We must distinguish
|
||||
* this from the case of the original path starting with '.'.
|
||||
*/
|
||||
*/
|
||||
if (do_dot || (*path != '.') || path[1]) {
|
||||
continue;
|
||||
}
|
||||
|
@@ -917,7 +917,7 @@ end_option:
|
||||
new_mode.c_cflag &= (~CIBAUD);
|
||||
if (speed_was_set || memcmp(&mode, &new_mode, sizeof(mode)) != 0)
|
||||
#endif
|
||||
perror_on_device_and_die ("%s: unable to perform all requested operations");
|
||||
perror_on_device_and_die("%s: cannot perform all requested operations");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user