version 1.5, 1997/02/12 19:48:24 |
version 1.6, 1997/07/22 06:59:38 |
|
|
if (becomeuser() != 0) |
if (becomeuser() != 0) |
exit(1); |
exit(1); |
#else /* !DIRECT_RCMD */ |
#else /* !DIRECT_RCMD */ |
debugmsg(DM_MISC, "Remote shell command = '%s'\n", path_remsh); |
debugmsg(DM_MISC, "Remote shell command = '%s'\n", |
|
path_remsh ? path_remsh : "default"); |
(void) signal(SIGPIPE, SIG_IGN); |
(void) signal(SIGPIPE, SIG_IGN); |
desc = rshrcmd(&rhost, -1, luser, ruser, cmd, 0); |
desc = rcmdsh(&rhost, -1, luser, ruser, cmd, path_remsh); |
if (desc > 0) |
if (desc > 0) |
(void) signal(SIGPIPE, sighandler); |
(void) signal(SIGPIPE, sighandler); |
#endif /* DIRECT_RCMD */ |
#endif /* DIRECT_RCMD */ |