]> granicus.if.org Git - sudo/commitdiff
Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 14 Jun 2007 16:03:53 +0000 (16:03 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 14 Jun 2007 16:03:53 +0000 (16:03 +0000)
Include memrchr() for systems without it.

Makefile.in
config.h.in
configure
configure.in

index e272e44e67ef901dda223eeb1035bd5bea019946..b176fec7b8167929a1574e08ee0d9179dfb73ef1 100644 (file)
@@ -101,10 +101,11 @@ PROGS = @PROGS@
 SRCS = alloc.c alloca.c check.c closefrom.c def_data.c defaults.c env.c \
        error.c fileops.c find_path.c fnmatch.c getcwd.c getprogname.c \
        getspwuid.c gettime.c goodpath.c gram.c gram.y interfaces.c ldap.c \
-       logging.c match.c mon_systrace.c parse.c pwutil.c set_perms.c \
-       sigaction.c snprintf.c strcasecmp.c strerror.c strlcat.c strlcpy.c \
-       sudo.c sudo_noexec.c sudo_edit.c testsudoers.c tgetpass.c toke.c toke.l \
-       tsgetgrpw.c utimes.c visudo.c zero_bytes.c redblack.c $(AUTH_SRCS)
+       logging.c match.c mkstemp.c memrchr.c mon_systrace.c parse.c pwutil.c  \
+       set_perms.c sigaction.c snprintf.c strcasecmp.c strerror.c strlcat.c \
+       strlcpy.c sudo.c sudo_noexec.c sudo_edit.c testsudoers.c tgetpass.c \
+       toke.c toke.l tsgetgrpw.c utimes.c visudo.c zero_bytes.c redblack.c \
+       $(AUTH_SRCS)
 
 AUTH_SRCS = auth/afs.c auth/aix_auth.c auth/bsdauth.c auth/dce.c auth/fwtk.c \
            auth/kerb4.c auth/kerb5.c auth/pam.c auth/passwd.c auth/rfc1938.c \
@@ -255,6 +256,8 @@ logging.o: $(srcdir)/logging.c $(SUDODEP)
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/logging.c
 match.o: $(srcdir)/match.c $(SUDODEP) $(srcdir)/parse.h $(srcdir)/interfaces.h $(devdir)/gram.h
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/match.c
+memrchr.o: $(srcdir)/memrchr.c $(SUDODEP)
+       $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/memrchr.c
 mkstemp.o: $(srcdir)/mkstemp.c $(SUDODEP)
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/mkstemp.c
 mon_solaris.o: $(srcdir)/mon_solaris.c $(SUDODEP) $(srcdir)/mon_solaris.h
index ffe79a1cee8497e84192ceecc4f9089671d7a537..4179f5ebb6adbe2a97bfd8f7f7a06c7180f491b4 100644 (file)
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
+/* Define to 1 if you have the `memrchr' function. */
+#undef HAVE_MEMRCHR
+
 /* Define to 1 if you have the `memset' function. */
 #undef HAVE_MEMSET
 
index fb94e4b14ba7117873872a6dd47d1a7d6961b649..49b06c5f7e9a645b95c6b8009ae17b94f6857386 100755 (executable)
--- a/configure
+++ b/configure
@@ -15850,7 +15850,8 @@ _ACEOF
 
 
 
-for ac_func in strerror strcasecmp sigaction strlcpy strlcat
+
+for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 echo "$as_me:$LINENO: checking for $ac_func" >&5
index 9918bb758108c23e26b027adcd5683d8016e6277..d71be6f55b6209cac5ffd68ec0ee9c715169bd77 100644 (file)
@@ -1692,7 +1692,7 @@ if test "$ac_cv_func_fnmatch_works" = no; then
     AC_LIBOBJ(fnmatch)
 fi
 SUDO_FUNC_ISBLANK
-AC_REPLACE_FUNCS(strerror strcasecmp sigaction strlcpy strlcat)
+AC_REPLACE_FUNCS(memrchr strerror strcasecmp sigaction strlcpy strlcat)
 AC_CHECK_FUNCS(closefrom, [], [AC_LIBOBJ(closefrom)
     AC_CHECK_DECL(F_CLOSEM, AC_DEFINE(HAVE_FCNTL_CLOSEM), [],
        [ #include <limits.h>