From: Todd C. Miller Date: Thu, 19 Feb 2015 16:59:25 +0000 (-0700) Subject: All modern systems should have LINE_MAX. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bb5897091260cfeb44a95143777221a19519a00;p=sudo All modern systems should have LINE_MAX. --- diff --git a/lib/util/getline.c b/lib/util/getline.c index 784fa63e3..30d31e4b6 100644 --- a/lib/util/getline.c +++ b/lib/util/getline.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2010, 2012-2014 Todd C. Miller + * Copyright (c) 2009-2010, 2012-2015 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -39,10 +39,6 @@ #include "sudo_compat.h" -#ifndef LINE_MAX -# define LINE_MAX 2048 -#endif - #ifdef HAVE_FGETLN ssize_t sudo_getline(char **bufp, size_t *bufsizep, FILE *fp) diff --git a/plugins/group_file/getgrent.c b/plugins/group_file/getgrent.c index 31e82b5cc..f70130ee6 100644 --- a/plugins/group_file/getgrent.c +++ b/plugins/group_file/getgrent.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005,2008,2010-2013 Todd C. Miller + * Copyright (c) 2005,2008,2010-2015 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -47,10 +47,6 @@ #include "sudo_compat.h" #include "sudo_util.h" -#ifndef LINE_MAX -# define LINE_MAX 2048 -#endif - #undef GRMEM_MAX #define GRMEM_MAX 200 diff --git a/plugins/sudoers/regress/check_symbols/check_symbols.c b/plugins/sudoers/regress/check_symbols/check_symbols.c index 06a0fc046..f8df34e51 100644 --- a/plugins/sudoers/regress/check_symbols/check_symbols.c +++ b/plugins/sudoers/regress/check_symbols/check_symbols.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2013 Todd C. Miller + * Copyright (c) 2012-2015 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -43,10 +43,6 @@ #include "sudo_util.h" #include "sudo_fatal.h" -#ifndef LINE_MAX -# define LINE_MAX 2048 -#endif - __dso_public int main(int argc, char *argv[]); static void diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index dbe44af04..588343700 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -102,10 +102,6 @@ # include "compat/getopt.h" #endif /* HAVE_GETOPT_LONG */ -#ifndef LINE_MAX -# define LINE_MAX 2048 -#endif - /* * Info present in the I/O log file */ diff --git a/plugins/sudoers/tsgetgrpw.c b/plugins/sudoers/tsgetgrpw.c index 025cc5a7c..1ea9accd1 100644 --- a/plugins/sudoers/tsgetgrpw.c +++ b/plugins/sudoers/tsgetgrpw.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2008, 2010-2013 + * Copyright (c) 2005, 2008, 2010-2015 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -49,10 +49,6 @@ #include "tsgetgrpw.h" #include "sudoers.h" -#ifndef LINE_MAX -# define LINE_MAX 2048 -#endif - #undef GRMEM_MAX #define GRMEM_MAX 200