*: use "can't" instead of "cannot"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -164,7 +164,7 @@ int date_main(int argc UNUSED_PARAM, char **argv)
|
||||
|
||||
/* if setting time, set it */
|
||||
if ((opt & OPT_SET) && stime(&tm) < 0) {
|
||||
bb_perror_msg("cannot set date");
|
||||
bb_perror_msg("can't set date");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ int id_main(int argc UNUSED_PARAM, char **argv)
|
||||
}
|
||||
} else if (n < 0) { /* error in get_groups() */
|
||||
if (!ENABLE_DESKTOP)
|
||||
bb_error_msg_and_die("cannot get groups");
|
||||
bb_error_msg_and_die("can't get groups");
|
||||
else
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@ int FAST_FUNC cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf)
|
||||
if (errno != ENOENT) {
|
||||
#if ENABLE_FEATURE_VERBOSE_CP_MESSAGE
|
||||
if (errno == ENOTDIR) {
|
||||
bb_error_msg("cannot stat '%s': Path has non-directory component", fn);
|
||||
bb_error_msg("can't stat '%s': Path has non-directory component", fn);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
bb_perror_msg("cannot stat '%s'", fn);
|
||||
bb_perror_msg("can't stat '%s'", fn);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -174,7 +174,7 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv)
|
||||
}
|
||||
/*
|
||||
if (fclose_if_not_stdin(pre_computed_stream) == EOF) {
|
||||
bb_perror_msg_and_die("cannot close file %s", file_ptr);
|
||||
bb_perror_msg_and_die("can't close file %s", file_ptr);
|
||||
}
|
||||
*/
|
||||
} else {
|
||||
|
||||
@@ -87,10 +87,10 @@ int mv_main(int argc, char **argv)
|
||||
if (errno != EXDEV
|
||||
|| (source_exists = cp_mv_stat2(*argv, &source_stat, lstat)) < 1
|
||||
) {
|
||||
bb_perror_msg("cannot rename '%s'", *argv);
|
||||
bb_perror_msg("can't rename '%s'", *argv);
|
||||
} else {
|
||||
static const char fmt[] ALIGN1 =
|
||||
"cannot overwrite %sdirectory with %sdirectory";
|
||||
"can't overwrite %sdirectory with %sdirectory";
|
||||
|
||||
if (dest_exists) {
|
||||
if (dest_exists == 3) {
|
||||
@@ -105,7 +105,7 @@ int mv_main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
if (unlink(dest) < 0) {
|
||||
bb_perror_msg("cannot remove '%s'", dest);
|
||||
bb_perror_msg("can't remove '%s'", dest);
|
||||
goto RET_1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -807,7 +807,7 @@ skip(off_t n_skip)
|
||||
}
|
||||
|
||||
if (n_skip)
|
||||
bb_error_msg_and_die("cannot skip past end of combined input");
|
||||
bb_error_msg_and_die("can't skip past end of combined input");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ int rm_main(int argc UNUSED_PARAM, char **argv)
|
||||
const char *base = bb_get_last_path_component_strip(*argv);
|
||||
|
||||
if (DOT_OR_DOTDOT(base)) {
|
||||
bb_error_msg("cannot remove '.' or '..'");
|
||||
bb_error_msg("can't remove '.' or '..'");
|
||||
} else if (remove_file(*argv, flags) >= 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -383,7 +383,7 @@ static bool do_statfs(const char *filename, const char *format)
|
||||
}
|
||||
#endif
|
||||
if (statfs(filename, &statfsbuf) != 0) {
|
||||
bb_perror_msg("cannot read file system information for '%s'", filename);
|
||||
bb_perror_msg("can't read file system information for '%s'", filename);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ static bool do_stat(const char *filename, const char *format)
|
||||
}
|
||||
#endif
|
||||
if ((option_mask32 & OPT_DEREFERENCE ? stat : lstat) (filename, &statbuf) != 0) {
|
||||
bb_perror_msg("cannot stat '%s'", filename);
|
||||
bb_perror_msg("can't stat '%s'", filename);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user