diff options
| author | millert <> | 2013-09-30 12:02:35 +0000 |
|---|---|---|
| committer | millert <> | 2013-09-30 12:02:35 +0000 |
| commit | 3ae226388eeab7366167acb094bcc77d1e4b4890 (patch) | |
| tree | 0f446346af2173e4d290cb18e59c199e46eb19e2 /src/lib/libc/net | |
| parent | 897106f6679063bbc724f6225fb69b82685b6414 (diff) | |
| download | openbsd-3ae226388eeab7366167acb094bcc77d1e4b4890.tar.gz openbsd-3ae226388eeab7366167acb094bcc77d1e4b4890.tar.bz2 openbsd-3ae226388eeab7366167acb094bcc77d1e4b4890.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')
| -rw-r--r-- | src/lib/libc/net/ruserok.c | 16 |
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 | ||
| 51 | int __ivaliduser(FILE *, in_addr_t, const char *, const char *); | 51 | int __ivaliduser(FILE *, in_addr_t, const char *, const char *); |
| 52 | int __ivaliduser_sa(FILE *, struct sockaddr *, socklen_t, | 52 | int __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; |
