- freopen("/", "r", stdin);
- execl("/bin/sh", "sh", "-c", ++s, 0);
+ (void) freopen("/", "r", stdin);
+ closelog();
+ dprintf(debug, "%d: executing %s", pid, s), fflush (debug);
+ execl(_PATH_BSHELL, "sh", "-c", s, 0);
+ syslog(LOG_ERR, "cannot exec %s: %m");
+ dprintf(debug, "%d: cannot execute sh\n", pid), fflush (debug);