check_header_gzip(src_fd);
status = inflate_gunzip(src_fd, dst_fd);
if (status != 0) {
- bb_error_msg_and_die("Error inflating");
+ bb_error_msg_and_die("error inflating");
}
} else {
- bb_error_msg_and_die("Invalid magic");
+ bb_error_msg_and_die("invalid magic");
}
} else {
- bb_error_msg_and_die("Invalid magic");
+ bb_error_msg_and_die("invalid magic");
}
if ((status != EXIT_SUCCESS) && (new_path)) {
/* delete_path will be NULL if in test mode or from stdin */
if (delete_path && (unlink(delete_path) == -1)) {
- bb_error_msg_and_die("Couldn't remove %s", delete_path);
+ bb_error_msg_and_die("cannot remove %s", delete_path);
}
free(new_path);
/* delete_path will be NULL if in test mode or from stdin */
if (delete_path && (unlink(delete_path) == -1)) {
- bb_error_msg_and_die("Couldn't remove %s", delete_path);
+ bb_error_msg_and_die("cannot remove %s", delete_path);
}
free(uncompressed_file);
/* bug: char *extension = filename + strlen(filename) - 5; */
char *extension = strrchr(filename, '.');
if (!extension || strcmp(extension, ".lzma") != 0) {
- bb_error_msg_and_die("Invalid extension");
+ bb_error_msg_and_die("invalid extension");
}
xstat(filename, &stat_buf);
*extension = '\0';
if (!status)
filename[strlen(filename)] = '.';
if (unlink(filename) < 0) {
- bb_error_msg_and_die("Couldn't remove %s", filename);
+ bb_error_msg_and_die("cannot remove %s", filename);
}
}
}
fdflags = fcntl(STDIN_FILENO, F_GETFL);
if (fdflags == -1 || fcntl(STDIN_FILENO, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
- perror_on_device_and_die("%s: couldn't reset non-blocking mode");
+ perror_on_device_and_die("%s: cannot reset non-blocking mode");
}
/* Initialize to all zeroes so there is no risk memcmp will report a
char *devname, *tmp;
int major, minor;
dev_t devno;
- const char *errmsg = "Couldn't parse %s: %s\n";
+ const char *errmsg = "Cannot parse %s: %s\n";
blkid_debug_mask = DEBUG_ALL;
if ((argc != 2) && (argc != 3)) {
exit(1);
}
if (blkid_get_cache(&cache, bb_dev_null) < 0) {
- fprintf(stderr, "Couldn't get blkid cache\n");
+ fprintf(stderr, "cannot get blkid cache\n");
exit(1);
}
/* Internal error: couldn't find dir_info */
{ PR_2_NO_DIRINFO,
- N_("Internal error: couldn't find dir_info for %i.\n"),
+ N_("Internal error: cannot find dir_info for %i.\n"),
PROMPT_NONE, PR_FATAL },
/* Final rec_len is wrong */
/* Internal error: couldn't find dir_info */
{ PR_3_NO_DIRINFO,
- N_("Internal error: couldn't find dir_info for %i.\n"),
+ N_("Internal error: cannot find dir_info for %i.\n"),
PROMPT_NONE, PR_FATAL },
/* Lost+found not a directory */
if (fd > 2)
break;
if (fd < 0) {
- fprintf(stderr, _("ERROR: Couldn't open "
+ fprintf(stderr, _("ERROR: Cannot open "
"/dev/null (%s)\n"),
strerror(errno));
break;
char *devname, *tmp;
int major, minor;
dev_t device;
- const char *errmsg = "Couldn't parse %s: %s\n";
+ const char *errmsg = "Cannot parse %s: %s\n";
if ((argc != 2) && (argc != 3)) {
fprintf(stderr, "Usage: %s device_number\n", argv[0]);
printf("Found device! %s\n", devname);
free(devname);
} else {
- printf("Couldn't find device.\n");
+ printf("Cannot find device.\n");
}
return 0;
}
struct fs_info *fs;
if ((f = fopen(filename, "r")) == NULL) {
- bb_perror_msg("WARNING: couldn't open %s", filename);
+ bb_perror_msg("WARNING: cannot open %s", filename);
return;
}
while (!feof(f)) {
if ((errno == EINTR) || (errno == EAGAIN))
continue;
if (errno == ECHILD) {
- bb_error_msg("wait: No more child process?!?");
+ bb_error_msg("wait: no more child process?!?");
return NULL;
}
perror("wait");
num_running++;
retval = execute(type, fs->device, fs->mountpt, interactive);
if (retval) {
- bb_error_msg("Error %d while executing fsck.%s for %s",
+ bb_error_msg("error %d while executing fsck.%s for %s",
retval, type, fs->device);
num_running--;
}
* /proc/partitions isn't found.
*/
if (access("/proc/partitions", R_OK) < 0) {
- bb_error_msg_and_die("Couldn't open /proc/partitions: %m\n"
- "Is /proc mounted?");
+ bb_perror_msg_and_die("cannot open /proc/partitions "
+ "(is /proc mounted?)");
}
/*
* Check to see if this is because
*/
if (geteuid())
bb_error_msg_and_die(
- "Must be root to scan for matching filesystems: %s\n", arg);
+ "must be root to scan for matching filesystems: %s\n", arg);
else
bb_error_msg_and_die(
- "Couldn't find matching filesystem: %s", arg);
+ "cannot find matching filesystem: %s", arg);
}
devices[num_devices++] = dev ? dev : string_copy(arg);
continue;
ts.tm_mday = 0;
#endif
if (ts.tm_mday == 0) {
- bb_error_msg_and_die("Couldn't parse date/time specifier: %s", str);
+ bb_error_msg_and_die("Cannot parse date/time specifier: %s", str);
}
return (mktime(&ts));
}
}
}
- bb_error_msg("Couldn't get a file descriptor referring to the console");
+ bb_error_msg("cannot get file descriptor referring to console");
return fd; /* total failure */
}
if (m_has_modinfo) {
m_version = new_get_module_version(f, m_strversion);
if (m_version == -1) {
- bb_error_msg("couldn't find the kernel version the module was "
+ bb_error_msg("cannot find the kernel version the module was "
"compiled for");
goto out;
}
memset(&packet, 0, sizeof(struct udp_dhcp_packet));
bytes = read(fd, &packet, sizeof(struct udp_dhcp_packet));
if (bytes < 0) {
- DEBUG("Couldn't read on raw listening socket - ignoring");
+ DEBUG("Cannot read on raw listening socket - ignoring");
usleep(500000); /* possible down interface, looping condition */
return -1;
}
else
fd = raw_socket(client_config.ifindex);
if (fd < 0) {
- bb_perror_msg("FATAL: couldn't listen on socket");
+ bb_perror_msg("FATAL: cannot listen on socket");
return 0;
}
}
if (server_socket < 0)
if ((server_socket = listen_socket(INADDR_ANY, SERVER_PORT, server_config.interface)) < 0) {
- bb_perror_msg("FATAL: couldn't create server socket");
+ bb_perror_msg("FATAL: cannot create server socket");
return 2;
}
}
if ((state = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) {
- bb_error_msg("Couldn't get option from packet, ignoring");
+ bb_error_msg("cannot get option from packet, ignoring");
continue;
}
DEBUG("Received DISCOVER");
if (sendOffer(&packet) < 0) {
- bb_error_msg("Send OFFER failed");
+ bb_error_msg("send OFFER failed");
}
break;
case DHCPREQUEST:
/* XXX search through $PATH is missing */
input = fopen(child->argv[1], "r");
if (!input) {
- bb_error_msg("Couldn't open file '%s'", child->argv[1]);
+ bb_error_msg("cannot open '%s'", child->argv[1]);
return EXIT_FAILURE;
}
#endif
debug_printf("exec of %s\n",child->argv[0]);
execvp(child->argv[0],child->argv);
- bb_perror_msg("couldn't exec: %s",child->argv[0]);
+ bb_perror_msg("cannot exec: %s",child->argv[0]);
_exit(1);
} else if (child->group) {
debug_printf("runtime nesting to group\n");
putenv(s);
free(s);
free(command);
- if (rc == -1) bb_perror_msg_and_die("Couldn't run %s", command);
+ if (rc == -1) bb_perror_msg_and_die("cannot run %s", command);
}
if (delete) unlink(device_name);
}