[Pkg-cron-devel] [pkg-cron] 02/02: Use case-insensitive comparison in charset selection

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Oct 21 21:53:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch ckk/cron-125
in repository pkg-cron.

commit e52937970827a46c19b301b6dbb78ca661b63c26
Author: Christian Kastner <debian at kvr.at>
Date:   Mon Oct 20 14:05:30 2014 +0200

    Use case-insensitive comparison in charset selection
    
    Thanks, Malcolm Scott! LP: #1169160
---
 cron.c           | 3 ++-
 debian/changelog | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/cron.c b/cron.c
index bb36cff..2cb435a 100644
--- a/cron.c
+++ b/cron.c
@@ -29,6 +29,7 @@ static char rcsid[] = "$Id: cron.c,v 2.11 1994/01/15 20:43:43 vixie Exp $";
 #include <sys/types.h>
 #include <fcntl.h>
 #include <libgen.h>
+#include <strings.h>
 
 static	void	usage __P((void)),
 		run_reboot_jobs __P((cron_db *)),
@@ -106,7 +107,7 @@ main(argc, argv)
        /* Except that "US-ASCII" is preferred to "ANSI_x3.4-1968" in MIME,
         * even though "ANSI_x3.4-1968" is the official charset name. */
        if ( ( cs = nl_langinfo( CODESET ) ) != 0L && 
-               strcmp(cs, "ANSI_x3.4-1968") != 0 )
+               strcasecmp(cs, "ANSI_x3.4-1968") != 0 )
            strncpy( cron_default_mail_charset, cs, MAX_ENVSTR );
        else
            strcpy( cron_default_mail_charset, "US-ASCII" );
diff --git a/debian/changelog b/debian/changelog
index f884479..3c8e23a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,9 @@ cron (3.0pl1-125) unstable; urgency=medium
     - Fix misspelled 'sytem'. Thanks, green! Closes: #753775
   * cron.c,crontab.c:
     - Use basename of argv[0] as syslog tag. Closes: #752750
+  * cron.c:
+     - Use case-insensitive comparison in charset selection. Thanks,
+       Malcolm Scott! LP: #1169160
   * entry.c:
     - Detect invalid entry: step specified without a range. Thanks,
       Justin T. Pryzby! Closes: #733478

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cron/pkg-cron.git



More information about the Pkg-cron-devel mailing list