#endif
#endif
-#ifndef _PATH_STDPATH
+#undef _PATH_STDPATH
#define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
-#endif
#if defined BB_FEATURE_INIT_COREDUMPS
while ((environ[j]) && (i < MAXENV)) {
if (strncmp(environ[j], "TERM=", 5))
environment[i++] = environ[j];
- else {
- snprintf(termType, sizeof(termType) - 1, environ[j]);
- }
j++;
}
* specifies.
*/
#ifdef DEBUG_INIT
- pid_t shell_pgid = getpid();
message(LOG, "Waiting for enter to start '%s' (pid %d, console %s)\r\n",
- command, shell_pgid, terminal);
+ command, getpid(), terminal);
#endif
write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
getc(stdin);
#ifdef DEBUG_INIT
/* Log the process name and args */
message(LOG, "Starting pid %d, console %s: '%s'\r\n",
- shell_pgid, terminal, command);
+ getpid(), terminal, command);
#endif
/* See if any special /bin/sh requiring characters are present */