]> granicus.if.org Git - sudo/commitdiff
All modern systems should have LINE_MAX.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 19 Feb 2015 16:59:25 +0000 (09:59 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 19 Feb 2015 16:59:25 +0000 (09:59 -0700)
lib/util/getline.c
plugins/group_file/getgrent.c
plugins/sudoers/regress/check_symbols/check_symbols.c
plugins/sudoers/sudoreplay.c
plugins/sudoers/tsgetgrpw.c

index 784fa63e3e63efbacf90ece7f14f67dceb0d90c3..30d31e4b6efa0a420b866479f5c0c169fd952e0a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2010, 2012-2014 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2009-2010, 2012-2015 Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
 
 #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)
index 31e82b5ccb2294baa312269b7d66f9b0b601fab5..f70130ee668f82425d325a0555387912ca047a39 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005,2008,2010-2013 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2005,2008,2010-2015 Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
 #include "sudo_compat.h"
 #include "sudo_util.h"
 
-#ifndef LINE_MAX
-# define LINE_MAX 2048
-#endif
-
 #undef GRMEM_MAX
 #define GRMEM_MAX 200
 
index 06a0fc04629356d1683a6194e2cd74baa4a1a7b2..f8df34e51330ee54ec1699443bfc3cbb5d687d6b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2013 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2012-2015 Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
 #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
index dbe44af04d69a149fc36ad05b51a3b6a9337fcb1..5883437007a379935d6788109c6c31b28100c1ad 100644 (file)
 # include "compat/getopt.h"
 #endif /* HAVE_GETOPT_LONG */
 
-#ifndef LINE_MAX
-# define LINE_MAX 2048
-#endif
-
 /*
  * Info present in the I/O log file
  */
index 025cc5a7cc7879c7a1e96355ab3da70a08c6296c..1ea9accd198f7ffe8aea2ab8faff96c3ee9be35d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, 2008, 2010-2013
+ * Copyright (c) 2005, 2008, 2010-2015
  *     Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
 #include "tsgetgrpw.h"
 #include "sudoers.h"
 
-#ifndef LINE_MAX
-# define LINE_MAX 2048
-#endif
-
 #undef GRMEM_MAX
 #define GRMEM_MAX 200