From 8e9e12f79db7b827ad711a775fb9903747dd6df3 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 10 Oct 2000 07:11:45 +0000 Subject: [PATCH] * server_dict.c (init_dict): Change syslog() to krb5_klog_syslog() so that errors go to the intended place as indicated by krb5.conf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12747 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/srv/ChangeLog | 5 +++++ src/lib/kadm5/srv/server_dict.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/kadm5/srv/ChangeLog b/src/lib/kadm5/srv/ChangeLog index 21fd2d333..614651554 100644 --- a/src/lib/kadm5/srv/ChangeLog +++ b/src/lib/kadm5/srv/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 10 03:09:27 2000 Ezra Peisach + + * server_dict.c (init_dict): Change syslog() to krb5_klog_syslog() + so that errors go to the intended place as indicated by krb5.conf. + 2000-06-30 Tom Yu * adb_openclose.c (osa_adb_create_db): Default to btree. diff --git a/src/lib/kadm5/srv/server_dict.c b/src/lib/kadm5/srv/server_dict.c index c1f2f62c3..9bee48eb9 100644 --- a/src/lib/kadm5/srv/server_dict.c +++ b/src/lib/kadm5/srv/server_dict.c @@ -87,14 +87,15 @@ int init_dict(kadm5_config_params *params) if(word_list != NULL && word_block != NULL) return KADM5_OK; if (! (params->mask & KADM5_CONFIG_DICT_FILE)) { - syslog(LOG_INFO, "No dictionary file specified, continuing " + krb5_klog_syslog(LOG_INFO, "No dictionary file specified, continuing " "without one."); return KADM5_OK; } if ((fd = open(params->dict_file, O_RDONLY)) == -1) { if (errno == ENOENT) { - syslog(LOG_ERR, "WARNING! Cannot find dictionary file %s, " - "continuing without one.", params->dict_file); + krb5_klog_syslog(LOG_ERR, + "WARNING! Cannot find dictionary file %s, " + "continuing without one.", params->dict_file); return KADM5_OK; } else return errno; -- 2.26.2