Sun Sep 18 14:18:25 2011 UTC ()
The patch in PR pkg/45280 applied.

* Fix build on DragonFly.
* The patches regen.

Tested on DragonFly/i386 2.10.1 and NetBSD/i386 5.99.55.


(ryoon)
diff -r1.73 -r1.74 pkgsrc/security/sudo/distinfo
diff -r1.27 -r1.28 pkgsrc/security/sudo/patches/patch-aa
diff -r1.27 -r1.28 pkgsrc/security/sudo/patches/patch-af
diff -r1.18 -r1.19 pkgsrc/security/sudo/patches/patch-ag
diff -r0 -r1.1 pkgsrc/security/sudo/patches/patch-alias.c
diff -r1.2 -r1.3 pkgsrc/security/sudo/patches/patch-logging.c

cvs diff -r1.73 -r1.74 pkgsrc/security/sudo/distinfo (expand / switch to unified diff)

--- pkgsrc/security/sudo/distinfo 2011/08/18 12:45:05 1.73
+++ pkgsrc/security/sudo/distinfo 2011/09/18 14:18:24 1.74
@@ -1,9 +1,10 @@ @@ -1,9 +1,10 @@
1$NetBSD: distinfo,v 1.73 2011/08/18 12:45:05 taca Exp $ 1$NetBSD: distinfo,v 1.74 2011/09/18 14:18:24 ryoon Exp $
2 2
3SHA1 (sudo-1.7.7.tar.gz) = cb0af05f4fa43920fff538687d4bd9a66ab3b251 3SHA1 (sudo-1.7.7.tar.gz) = cb0af05f4fa43920fff538687d4bd9a66ab3b251
4RMD160 (sudo-1.7.7.tar.gz) = bd2464dba8a986e6172dd305fc6a1adba78d9779 4RMD160 (sudo-1.7.7.tar.gz) = bd2464dba8a986e6172dd305fc6a1adba78d9779
5Size (sudo-1.7.7.tar.gz) = 1152132 bytes 5Size (sudo-1.7.7.tar.gz) = 1152132 bytes
6SHA1 (patch-aa) = df93a99bdcecdcee7f836d1123bcf740b054ed4e 6SHA1 (patch-aa) = 70aa1a1da2d0cd9c8c8d9cbeab747b85028511f7
7SHA1 (patch-af) = c9e09c77f520874ea165750380c3b985b31f559c 7SHA1 (patch-af) = 0dce4ebbc82ab644565f71e8f472c407ddbaabf5
8SHA1 (patch-ag) = 4c4771911b93c8760c3a8195311cf2b3456aeafd 8SHA1 (patch-ag) = fe8409164b61bdb229ca81d391de96898436ea0b
9SHA1 (patch-logging.c) = b4f10e64564e0cece07d4211d3a3ae6723057393 9SHA1 (patch-alias.c) = efe15c21ec221b839806c8b22a6b5c351ac4bf80
 10SHA1 (patch-logging.c) = 26608d7423b77f71f17b37cc87f4b2e75978d7cb

cvs diff -r1.27 -r1.28 pkgsrc/security/sudo/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/security/sudo/patches/Attic/patch-aa 2011/06/19 15:54:55 1.27
+++ pkgsrc/security/sudo/patches/Attic/patch-aa 2011/09/18 14:18:25 1.28
@@ -1,32 +1,32 @@ @@ -1,32 +1,32 @@
1$NetBSD: patch-aa,v 1.27 2011/06/19 15:54:55 taca Exp $ 1$NetBSD: patch-aa,v 1.28 2011/09/18 14:18:25 ryoon Exp $
2 2
3* Fix libtools's link option. 3* Fix libtools's link option.
4* Prevent to install sudoers files and directory. 4* Prevent to install sudoers files and directory.
5* Use standard instal(8) option instead of shell wrapper. 5* Use standard instal(8) option instead of shell wrapper.
6* Don't setuid here. 6* Don't setuid here.
7 7
8--- Makefile.in.orig 2011-03-29 19:25:56.000000000 +0000 8--- Makefile.in.orig 2011-08-13 17:29:18 +0000
9+++ Makefile.in 9+++ Makefile.in
10@@ -222,7 +222,7 @@ sudo_noexec.lo: $(srcdir)/sudo_noexec.c 10@@ -222,7 +222,7 @@ sudo_noexec.lo: $(srcdir)/sudo_noexec.c
11 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/sudo_noexec.c 11 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/sudo_noexec.c
12  12
13 libsudo_noexec.la: sudo_noexec.lo 13 libsudo_noexec.la: sudo_noexec.lo
14- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir) 14- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
15+ $(LIBTOOL) --mode=link $(CC) -module $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir) 15+ $(LIBTOOL) --mode=link $(CC) -module $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
16  16
17 # Uncomment the following if you want "make distclean" to clean the parser 17 # Uncomment the following if you want "make distclean" to clean the parser
18 @DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate 18 @DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate
19@@ -541,43 +541,43 @@ pre-install: 19@@ -543,43 +543,43 @@ pre-install:
20 ./visudo -c -f $(DESTDIR)$(sudoersdir)/sudoers; \ 20 ./visudo -c -f $(DESTDIR)$(sudoersdir)/sudoers; \
21 fi 21 fi
22  22
23-install: pre-install install-dirs install-binaries @INSTALL_NOEXEC@ install-sudoers install-doc 23-install: pre-install install-dirs install-binaries @INSTALL_NOEXEC@ install-sudoers install-doc
24+install: install-binaries @INSTALL_NOEXEC@ install-doc 24+install: install-binaries @INSTALL_NOEXEC@ install-doc
25  25
26 install-dirs: 26 install-dirs:
27 $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(sudodir) \ 27 $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(sudodir) \
28 $(DESTDIR)$(visudodir) $(DESTDIR)$(noexecdir) \ 28 $(DESTDIR)$(visudodir) $(DESTDIR)$(noexecdir) \
29- $(DESTDIR)$(sudoersdir) $(DESTDIR)$(docdir) \ 29- $(DESTDIR)$(sudoersdir) $(DESTDIR)$(docdir) \
30+ $(DESTDIR)$(docdir) \ 30+ $(DESTDIR)$(docdir) \
31 $(DESTDIR)$(mandirsu) $(DESTDIR)$(mandirform) 31 $(DESTDIR)$(mandirsu) $(DESTDIR)$(mandirform)
32 $(SHELL) $(srcdir)/mkinstalldirs -m 0700 $(DESTDIR)$(timedir) 32 $(SHELL) $(srcdir)/mkinstalldirs -m 0700 $(DESTDIR)$(timedir)

cvs diff -r1.27 -r1.28 pkgsrc/security/sudo/patches/Attic/patch-af (expand / switch to unified diff)

--- pkgsrc/security/sudo/patches/Attic/patch-af 2011/06/19 15:54:55 1.27
+++ pkgsrc/security/sudo/patches/Attic/patch-af 2011/09/18 14:18:25 1.28
@@ -1,56 +1,56 @@ @@ -1,56 +1,56 @@
1$NetBSD: patch-af,v 1.27 2011/06/19 15:54:55 taca Exp $ 1$NetBSD: patch-af,v 1.28 2011/09/18 14:18:25 ryoon Exp $
2 2
3* Add "--with-nbsdops" option, NetBSD standard options. 3* Add "--with-nbsdops" option, NetBSD standard options.
4* Link with util(3) in the case of DragonFly, too. 4* Link with util(3) in the case of DragonFly, too.
5* When specified "--with-kerb5" option, test existence of several functions 5* When specified "--with-kerb5" option, test existence of several functions
6 even if there is krb5-config. krb5-config dosen't give all definitions for 6 even if there is krb5-config. krb5-config dosen't give all definitions for
7 functions (HAVE_KRB5_*). 7 functions (HAVE_KRB5_*).
8* Remove setting sysconfdir to "/etc". 8* Remove setting sysconfdir to "/etc".
9 9
10--- configure.in.orig 2011-05-16 17:38:07.000000000 +0000 10--- configure.in.orig 2011-08-17 13:51:59 +0000
11+++ configure.in 11+++ configure.in
12@@ -326,6 +326,18 @@ AC_ARG_WITH(csops, [AS_HELP_STRING([--wi 12@@ -326,6 +326,18 @@ AC_ARG_WITH(csops, [AS_HELP_STRING([--wi
13 ;; 13 ;;
14 esac]) 14 esac])
15  15
16+AC_ARG_WITH(nbsdops, [AS_HELP_STRING([--with-nbsdops], [add NetBSD standard options])], 16+AC_ARG_WITH(nbsdops, [AS_HELP_STRING([--with-nbsdops], [add NetBSD standard options])],
17+[case $with_nbsdops in 17+[case $with_nbsdops in
18+ yes) echo 'Adding NetBSD standard options' 18+ yes) echo 'Adding NetBSD standard options'
19+ CHECKSIA=false 19+ CHECKSIA=false
20+ with_ignore_dot=yes 20+ with_ignore_dot=yes
21+ with_env_editor=yes 21+ with_env_editor=yes
22+ with_tty_tickets=yes 22+ with_tty_tickets=yes
23+ ;; 23+ ;;
24+ no) ;; 24+ no) ;;
25+ *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops" 25+ *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops"
26+ ;; 26+ ;;
27+esac]) 27+esac])
28 AC_ARG_WITH(passwd, [AS_HELP_STRING([--without-passwd], [don't use passwd/shadow file for authentication])], 28 AC_ARG_WITH(passwd, [AS_HELP_STRING([--without-passwd], [don't use passwd/shadow file for authentication])],
29 [case $with_passwd in 29 [case $with_passwd in
30 yes|no) AC_MSG_CHECKING(whether to use shadow/passwd file authentication) 30 yes|no) AC_MSG_CHECKING(whether to use shadow/passwd file authentication)
31@@ -1925,7 +1937,7 @@ SUDO_MAILDIR 31@@ -1968,7 +1980,7 @@ SUDO_MAILDIR
32 if test ${with_logincap-'no'} != "no"; then 32 if test ${with_logincap-'no'} != "no"; then
33 AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '; LCMAN=1 33 AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '; LCMAN=1
34 case "$OS" in 34 case "$OS" in
35- freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil" 35- freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
36+ dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil" 36+ dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil"
37 ;; 37 ;;
38 esac 38 esac
39 ]) 39 ])
40@@ -2429,6 +2441,8 @@ if test ${with_kerb5-'no'} != "no"; then 40@@ -2476,6 +2488,8 @@ if test ${with_kerb5-'no'} != "no"; then
41 ]) 41 ])
42 AUTH_OBJS="$AUTH_OBJS kerb5.o" 42 AUTH_OBJS="$AUTH_OBJS kerb5.o"
43 fi 43 fi
44+fi 44+fi
45+if test ${with_kerb5-'no'} != "no"; then 45+if test ${with_kerb5-'no'} != "no"; then
46 _LIBS="$LIBS" 46 _LIBS="$LIBS"
47 LIBS="${LIBS} ${SUDO_LIBS}" 47 LIBS="${LIBS} ${SUDO_LIBS}"
48 AC_CHECK_FUNCS(krb5_verify_user krb5_init_secure_context) 48 AC_CHECK_FUNCS(krb5_verify_user krb5_init_secure_context)
49@@ -2869,7 +2883,6 @@ test "$libexecdir" = '${exec_prefix}/lib 49@@ -2932,7 +2946,6 @@ test "$libexecdir" = '${exec_prefix}/lib
50 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include' 50 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
51 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share' 51 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
52 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)' 52 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
53-test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc' 53-test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
54  54
55 dnl 55 dnl
56 dnl Substitute into the Makefile and man pages 56 dnl Substitute into the Makefile and man pages

cvs diff -r1.18 -r1.19 pkgsrc/security/sudo/patches/Attic/patch-ag (expand / switch to unified diff)

--- pkgsrc/security/sudo/patches/Attic/patch-ag 2011/06/19 15:54:55 1.18
+++ pkgsrc/security/sudo/patches/Attic/patch-ag 2011/09/18 14:18:25 1.19
@@ -1,77 +1,77 @@ @@ -1,77 +1,77 @@
1$NetBSD: patch-ag,v 1.18 2011/06/19 15:54:55 taca Exp $ 1$NetBSD: patch-ag,v 1.19 2011/09/18 14:18:25 ryoon Exp $
2 2
3* Add "--with-nbsdops" option, NetBSD standard options. 3* Add "--with-nbsdops" option, NetBSD standard options.
4* Link with util(3) in the case of DragonFly, too. 4* Link with util(3) in the case of DragonFly, too.
5* When specified "--with-kerb5" option, test existence of several functions 5* When specified "--with-kerb5" option, test existence of several functions
6 even if there is krb5-config. krb5-config dosen't give all definitions for 6 even if there is krb5-config. krb5-config dosen't give all definitions for
7 functions (HAVE_KRB5_*). 7 functions (HAVE_KRB5_*).
8* Remove setting sysconfdir to "/etc". 8* Remove setting sysconfdir to "/etc".
9 9
10--- configure.orig 2011-05-16 17:38:16.000000000 +0000 10--- configure.orig 2011-08-17 13:51:59 +0000
11+++ configure 11+++ configure
12@@ -1596,7 +1596,7 @@ Fine tuning of the installation director 12@@ -1470,7 +1470,7 @@ Fine tuning of the installation director
13 --bindir=DIR user executables [EPREFIX/bin] 13 --bindir=DIR user executables [EPREFIX/bin]
14 --sbindir=DIR system admin executables [EPREFIX/sbin] 14 --sbindir=DIR system admin executables [EPREFIX/sbin]
15 --libexecdir=DIR program executables [EPREFIX/libexec] 15 --libexecdir=DIR program executables [EPREFIX/libexec]
16- --sysconfdir=DIR read-only single-machine data [/etc] 16- --sysconfdir=DIR read-only single-machine data [/etc]
17+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 17+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
18 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 18 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
19 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 19 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
20 --libdir=DIR object code libraries [EPREFIX/lib] 20 --libdir=DIR object code libraries [EPREFIX/lib]
21@@ -1676,6 +1676,7 @@ Optional Packages: 21@@ -1550,6 +1550,7 @@ Optional Packages:
22 --with-libraries additional libraries to link with 22 --with-libraries additional libraries to link with
23 --with-efence link with -lefence for malloc() debugging 23 --with-efence link with -lefence for malloc() debugging
24 --with-csops add CSOps standard options 24 --with-csops add CSOps standard options
25+ --with-nbsdops add NetBSD standard options 25+ --with-nbsdops add NetBSD standard options
26 --without-passwd don't use passwd/shadow file for authentication 26 --without-passwd don't use passwd/shadow file for authentication
27 --with-skey=DIR enable S/Key support 27 --with-skey=DIR enable S/Key support
28 --with-opie=DIR enable OPIE support 28 --with-opie=DIR enable OPIE support
29@@ -4052,6 +4053,22 @@ $as_echo "$as_me: WARNING: Ignoring unkn 29@@ -3934,6 +3935,22 @@ $as_echo "$as_me: WARNING: Ignoring unkn
30 esac 30 esac
31 fi 31 fi
32  32
33+# Check whether --with-nbsdops or --without-nbsdops was given. 33+# Check whether --with-nbsdops or --without-nbsdops was given.
34+if test "${with_nbsdops+set}" = set; then 34+if test "${with_nbsdops+set}" = set; then
35+ withval="$with_nbsdops" 35+ withval="$with_nbsdops"
36+ case $with_nbsdops in 36+ case $with_nbsdops in
37+ yes) echo 'Adding NetBSD standard options' 37+ yes) echo 'Adding NetBSD standard options'
38+ CHECKSIA=false 38+ CHECKSIA=false
39+ with_ignore_dot=yes 39+ with_ignore_dot=yes
40+ with_env_editor=yes 40+ with_env_editor=yes
41+ with_tty_tickets=yes 41+ with_tty_tickets=yes
42+ ;; 42+ ;;
43+ no) ;; 43+ no) ;;
44+ *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops" 44+ *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops"
45+ ;; 45+ ;;
46+esac 46+esac
47+fi; 47+fi;
48+ 48+
49  49
50  50
51 # Check whether --with-passwd was given. 51 # Check whether --with-passwd was given.
52@@ -14469,7 +14486,7 @@ if test "x$ac_cv_header_login_cap_h" = x 52@@ -15374,7 +15391,7 @@ if test "x$ac_cv_header_login_cap_h" = x
53 _ACEOF 53 _ACEOF
54 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1 54 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
55 case "$OS" in 55 case "$OS" in
56- freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil" 56- freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
57+ dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil" 57+ dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil"
58 ;; 58 ;;
59 esac 59 esac
60  60
61@@ -17439,6 +17456,8 @@ fi 61@@ -18438,6 +18455,8 @@ fi
62 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63 AUTH_OBJS="$AUTH_OBJS kerb5.o" 63 AUTH_OBJS="$AUTH_OBJS kerb5.o"
64 fi 64 fi
65+fi 65+fi
66+if test ${with_kerb5-'no'} != "no"; then 66+if test ${with_kerb5-'no'} != "no"; then
67 _LIBS="$LIBS" 67 _LIBS="$LIBS"
68 LIBS="${LIBS} ${SUDO_LIBS}" 68 LIBS="${LIBS} ${SUDO_LIBS}"
69 for ac_func in krb5_verify_user krb5_init_secure_context 69 for ac_func in krb5_verify_user krb5_init_secure_context
70@@ -18811,7 +18830,6 @@ test "$libexecdir" = '${exec_prefix}/lib 70@@ -19859,7 +19878,6 @@ test "$libexecdir" = '${exec_prefix}/lib
71 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include' 71 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
72 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share' 72 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
73 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)' 73 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
74-test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc' 74-test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
75  75
76 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers" 76 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h sudoers"
77  77

File Added: pkgsrc/security/sudo/patches/Attic/patch-alias.c
$NetBSD: patch-alias.c,v 1.1 2011/09/18 14:18:25 ryoon Exp $

--- alias.c.orig	2011-08-13 18:39:45 +0000
+++ alias.c
@@ -40,11 +40,11 @@
 # include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 
+#include <errno.h>
 #include "sudo.h"
 #include "parse.h"
 #include "redblack.h"
 #include <gram.h>
-#include <errno.h>
 
 /*
  * Globals

cvs diff -r1.2 -r1.3 pkgsrc/security/sudo/patches/Attic/patch-logging.c (expand / switch to unified diff)

--- pkgsrc/security/sudo/patches/Attic/patch-logging.c 2011/06/19 15:54:55 1.2
+++ pkgsrc/security/sudo/patches/Attic/patch-logging.c 2011/09/18 14:18:25 1.3
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: patch-logging.c,v 1.2 2011/06/19 15:54:55 taca Exp $ 1$NetBSD: patch-logging.c,v 1.3 2011/09/18 14:18:25 ryoon Exp $
2 2
3Make sure CODESET is actually defined, for the sake of 3Make sure CODESET is actually defined, for the sake of
4old NetBSD versions 4old NetBSD versions
5 5
6--- logging.c.orig 2011-02-04 22:59:42.000000000 +0000 6--- logging.c.orig 2011-08-13 17:32:04 +0000
7+++ logging.c 7+++ logging.c
8@@ -619,7 +619,7 @@ send_mail(fmt, va_alist) 8@@ -573,7 +573,7 @@ send_mail(fmt, va_alist)
9 (void) fputc(*p, mail); 9 (void) fputc(*p, mail);
10 } 10 }
11  11
12-#ifdef HAVE_NL_LANGINFO 12-#ifdef HAVE_NL_LANGINFO
13+#if defined(HAVE_NL_LANGINFO) && defined(CODESET) 13+#if defined(HAVE_NL_LANGINFO) && defined(CODESET)
14 if (strcmp(def_sudoers_locale, "C") != 0) 14 if (strcmp(def_sudoers_locale, "C") != 0)
15 (void) fprintf(mail, "\nContent-Type: text/plain; charset=\"%s\"\nContent-Transfer-Encoding: 8bit", nl_langinfo(CODESET)); 15 (void) fprintf(mail, "\nContent-Type: text/plain; charset=\"%s\"\nContent-Transfer-Encoding: 8bit", nl_langinfo(CODESET));
16 #endif /* HAVE_NL_LANGINFO */ 16 #endif /* HAVE_NL_LANGINFO */