- fix spelling

This commit is contained in:
Bernhard Reutner-Fischer
2008-07-21 13:46:54 +00:00
parent e1e5174942
commit a53de7f7c2
9 changed files with 41 additions and 41 deletions

View File

@@ -3534,7 +3534,7 @@ static void
xtcsetpgrp(int fd, pid_t pgrp)
{
if (tcsetpgrp(fd, pgrp))
ash_msg_and_raise_error("cannot set tty process group (%m)");
ash_msg_and_raise_error("can't set tty process group (%m)");
}
/*
@@ -4844,9 +4844,9 @@ openredirect(union node *redir)
return f;
ecreate:
ash_msg_and_raise_error("cannot create %s: %s", fname, errmsg(errno, "nonexistent directory"));
ash_msg_and_raise_error("can't create %s: %s", fname, errmsg(errno, "nonexistent directory"));
eopen:
ash_msg_and_raise_error("cannot open %s: %s", fname, errmsg(errno, "no such file"));
ash_msg_and_raise_error("can't open %s: %s", fname, errmsg(errno, "no such file"));
}
/*

View File

@@ -1466,7 +1466,7 @@ static void pseudo_exec_argv(char **ptrs2free, char **argv)
debug_printf_exec("execing '%s'\n", argv[0]);
execvp(argv[0], argv);
bb_perror_msg("cannot exec '%s'", argv[0]);
bb_perror_msg("can't exec '%s'", argv[0]);
_exit(EXIT_FAILURE);
}
@@ -4425,7 +4425,7 @@ static int builtin_source(char **argv)
/* XXX search through $PATH is missing */
input = fopen(argv[1], "r");
if (!input) {
bb_error_msg("cannot open '%s'", argv[1]);
bb_error_msg("can't open '%s'", argv[1]);
return EXIT_FAILURE;
}
close_on_exec_on(fileno(input));

View File

@@ -1268,7 +1268,7 @@ static int newfile(char *s)
f = open(s, O_RDONLY);
if (f < 0) {
prs(s);
err(": cannot open");
err(": can't open");
return 1;
}
}
@@ -2770,7 +2770,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp)
DBGPRINTF3(("FORKEXEC: calling vfork()...\n"));
newpid = vfork();
if (newpid == -1) {
DBGPRINTF(("FORKEXEC: ERROR, cannot vfork()!\n"));
DBGPRINTF(("FORKEXEC: ERROR, can't vfork()!\n"));
return -1;
}
@@ -2820,7 +2820,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp)
if (iopp) {
if (bltin && bltin != doexec) {
prs(bltin_name);
err(": cannot redirect shell command");
err(": can't redirect shell command");
if (forked)
_exit(-1);
return -1;
@@ -2840,7 +2840,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp)
/* Builtin in pipe: disallowed */
/* TODO: allow "exec"? */
prs(bltin_name);
err(": cannot run builtin as part of pipe");
err(": can't run builtin as part of pipe");
if (forked)
_exit(-1);
return -1;
@@ -2955,7 +2955,7 @@ static int iosetup(struct ioword *iop, int pipein, int pipeout)
if (u < 0) {
prs(cp);
prs(": cannot ");
prs(": can't ");
warn(msg);
return 1;
}
@@ -3110,7 +3110,7 @@ static const char *rexecve(char *c, char **v, char **envp)
return "not found";
}
exstat = 126; /* mimic bash */
return "cannot execute";
return "can't execute";
}
/*
@@ -3996,7 +3996,7 @@ static int dollar(int quoted)
switch (c) {
case '=':
if (isdigit(*s)) {
err("cannot use ${...=...} with $n");
err("can't use ${...=...} with $n");
gflg = 1;
break;
}