summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ruserok.c
diff options
context:
space:
mode:
authormillert <>2013-09-30 12:02:35 +0000
committermillert <>2013-09-30 12:02:35 +0000
commit362b96a0554ddbc24305e3d4835efe41c2d73b81 (patch)
tree0f446346af2173e4d290cb18e59c199e46eb19e2 /src/lib/libc/net/ruserok.c
parentd2c4b95c0364ddb27d57c0d976621efe6b37c36f (diff)
downloadopenbsd-362b96a0554ddbc24305e3d4835efe41c2d73b81.tar.gz
openbsd-362b96a0554ddbc24305e3d4835efe41c2d73b81.tar.bz2
openbsd-362b96a0554ddbc24305e3d4835efe41c2d73b81.zip
Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
Diffstat (limited to 'src/lib/libc/net/ruserok.c')
-rw-r--r--src/lib/libc/net/ruserok.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/net/ruserok.c b/src/lib/libc/net/ruserok.c
index 5ef078ac95..46fba4beb2 100644
--- a/src/lib/libc/net/ruserok.c
+++ b/src/lib/libc/net/ruserok.c
@@ -28,25 +28,25 @@
28 * SUCH DAMAGE. 28 * SUCH DAMAGE.
29 */ 29 */
30 30
31#include <sys/param.h>
32#include <sys/socket.h> 31#include <sys/socket.h>
33#include <sys/stat.h> 32#include <sys/stat.h>
34 33
35#include <netinet/in.h> 34#include <netinet/in.h>
36#include <arpa/inet.h> 35#include <arpa/inet.h>
37 36
38#include <signal.h> 37#include <ctype.h>
38#include <errno.h>
39#include <fcntl.h> 39#include <fcntl.h>
40#include <limits.h>
40#include <netdb.h> 41#include <netdb.h>
41#include <unistd.h> 42#include <netgroup.h>
42#include <pwd.h> 43#include <pwd.h>
43#include <errno.h> 44#include <signal.h>
44#include <stdio.h> 45#include <stdio.h>
45#include <ctype.h> 46#include <stdlib.h>
46#include <string.h> 47#include <string.h>
47#include <syslog.h> 48#include <syslog.h>
48#include <stdlib.h> 49#include <unistd.h>
49#include <netgroup.h>
50 50
51int __ivaliduser(FILE *, in_addr_t, const char *, const char *); 51int __ivaliduser(FILE *, in_addr_t, const char *, const char *);
52int __ivaliduser_sa(FILE *, struct sockaddr *, socklen_t, 52int __ivaliduser_sa(FILE *, struct sockaddr *, socklen_t,
@@ -114,7 +114,7 @@ iruserok_sa(const void *raddr, int rlen, int superuser, const char *ruser,
114 FILE *hostf; 114 FILE *hostf;
115 uid_t uid; 115 uid_t uid;
116 int first; 116 int first;
117 char pbuf[MAXPATHLEN]; 117 char pbuf[PATH_MAX];
118 118
119 sa = (struct sockaddr *)raddr; 119 sa = (struct sockaddr *)raddr;
120 first = 1; 120 first = 1;