use roken_*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3693 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -418,7 +418,7 @@ doit (char *hostname, char *remote_user, int port, int argc, char **argv)
|
|||||||
|
|
||||||
cmd_len = construct_command(&cmd, argc, argv);
|
cmd_len = construct_command(&cmd, argc, argv);
|
||||||
|
|
||||||
hostent = gethostbyname (hostname);
|
hostent = roken_gethostbyname (hostname);
|
||||||
if (hostent == NULL)
|
if (hostent == NULL)
|
||||||
errx (1, "gethostbyname '%s' failed: %s",
|
errx (1, "gethostbyname '%s' failed: %s",
|
||||||
hostname,
|
hostname,
|
||||||
@@ -522,7 +522,7 @@ main(int argc, char **argv)
|
|||||||
usage (1);
|
usage (1);
|
||||||
|
|
||||||
if (port_str) {
|
if (port_str) {
|
||||||
struct servent *s = getservbyname (port_str, "tcp");
|
struct servent *s = roken_getservbyname (port_str, "tcp");
|
||||||
|
|
||||||
if (s)
|
if (s)
|
||||||
port = s->s_port;
|
port = s->s_port;
|
||||||
|
@@ -549,7 +549,7 @@ main(int argc, char **argv)
|
|||||||
int port = 0;
|
int port = 0;
|
||||||
|
|
||||||
set_progname (argv[0]);
|
set_progname (argv[0]);
|
||||||
openlog ("rshd", LOG_ODELAY | LOG_PID, LOG_AUTH);
|
roken_openlog ("rshd", LOG_ODELAY | LOG_PID, LOG_AUTH);
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "ixp:")) != EOF) {
|
while ((c = getopt(argc, argv, "ixp:")) != EOF) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
@@ -560,7 +560,7 @@ main(int argc, char **argv)
|
|||||||
do_encrypt = 1;
|
do_encrypt = 1;
|
||||||
break;
|
break;
|
||||||
case 'p': {
|
case 'p': {
|
||||||
struct servent *s = getservbyname (optarg, "tcp");
|
struct servent *s = roken_getservbyname (optarg, "tcp");
|
||||||
|
|
||||||
if (s)
|
if (s)
|
||||||
port = s->s_port;
|
port = s->s_port;
|
||||||
|
Reference in New Issue
Block a user