diff options
author | deraadt <deraadt@openbsd.org> | 2015-01-16 06:39:28 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2015-01-16 06:39:28 +0000 |
commit | b9fc9a728fce9c4289b7e9a992665e28d5629a54 (patch) | |
tree | 72b2433e418dfa1aef5fcf8305617b97979a25d8 /usr.sbin/identd | |
parent | improve checksum parsing slightly. now handles filenames with spaces. (diff) | |
download | wireguard-openbsd-b9fc9a728fce9c4289b7e9a992665e28d5629a54.tar.xz wireguard-openbsd-b9fc9a728fce9c4289b7e9a992665e28d5629a54.zip |
Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
Diffstat (limited to 'usr.sbin/identd')
-rw-r--r-- | usr.sbin/identd/identd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index 7dc119a5b40..cd11699bf9a 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.26 2014/07/13 17:53:41 claudio Exp $ */ +/* $OpenBSD: identd.c,v 1.27 2015/01/16 06:40:17 deraadt Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> @@ -38,6 +38,7 @@ #include <fcntl.h> #include <pwd.h> #include <stdio.h> +#include <limits.h> #include <stdlib.h> #include <string.h> #include <syslog.h> @@ -436,7 +437,7 @@ parent_token(struct ident_resolver *r, struct passwd *pw) void parent_noident(struct ident_resolver *r, struct passwd *pw) { - char path[MAXPATHLEN]; + char path[PATH_MAX]; struct stat st; int rv; |