diff options
author | kstailey <kstailey@openbsd.org> | 1997-07-09 15:56:19 +0000 |
---|---|---|
committer | kstailey <kstailey@openbsd.org> | 1997-07-09 15:56:19 +0000 |
commit | c1211e04018822865da7b83e0d21f413c2addbc3 (patch) | |
tree | b010792b7ad915d7137eaf3b113839ad6bc5c0ba /libexec/rpc.rusersd | |
parent | Don't do needless sync and change -fast to -check in unmount_fs() (diff) | |
download | wireguard-openbsd-c1211e04018822865da7b83e0d21f413c2addbc3.tar.xz wireguard-openbsd-c1211e04018822865da7b83e0d21f413c2addbc3.zip |
Use syslog(3), not fprintf(3) for error messages.
OSF is not the only OS that uses USER_PROCESS in ut_type.
Diffstat (limited to 'libexec/rpc.rusersd')
-rw-r--r-- | libexec/rpc.rusersd/rusers_proc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c index 78d8a67d287..13d12b4e01e 100644 --- a/libexec/rpc.rusersd/rusers_proc.c +++ b/libexec/rpc.rusersd/rusers_proc.c @@ -27,7 +27,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: rusers_proc.c,v 1.4 1997/02/13 06:22:42 millert Exp $"; +static char rcsid[] = "$Id: rusers_proc.c,v 1.5 1997/07/09 15:56:19 kstailey Exp $"; #endif /* not lint */ #include <signal.h> @@ -205,7 +205,7 @@ rusers_num_svc(arg, rqstp) if (*usr.ut_name && *usr.ut_line && strncmp(usr.ut_name, IGNOREUSER, sizeof(usr.ut_name)) -#ifdef OSF +#ifdef USER_PROCESS && usr.ut_type == USER_PROCESS #endif ) { @@ -238,7 +238,7 @@ do_names_3(int all) if (*usr.ut_name && *usr.ut_line && strncmp(usr.ut_name, IGNOREUSER, sizeof(usr.ut_name)) -#ifdef OSF +#ifdef USER_PROCESS && usr.ut_type == USER_PROCESS #endif ) { @@ -300,7 +300,7 @@ do_names_2(int all) if (*usr.ut_name && *usr.ut_line && strncmp(usr.ut_name, IGNOREUSER, sizeof(usr.ut_name)) -#ifdef OSF +#ifdef USER_PROCESS && usr.ut_type == USER_PROCESS #endif ) { @@ -362,7 +362,7 @@ do_names_1(int all) if (*usr.ut_name && *usr.ut_line && strncmp(usr.ut_name, IGNOREUSER, sizeof(usr.ut_name)) -#ifdef OSF +#ifdef USER_PROCESS && usr.ut_type == USER_PROCESS #endif ) { @@ -502,7 +502,7 @@ rusers_service(rqstp, transp) svcerr_systemerr(transp); } if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { - (void)fprintf(stderr, "unable to free arguments\n"); + syslog(LOG_ERR, "unable to free arguments"); exit(1); } leave: |