From 5e362cea9035e6cf94c859305f6d206bf7018681 Mon Sep 17 00:00:00 2001
From: Santiago Castro <sacastro@umich.edu>
Date: Thu, 14 Mar 2019 17:55:00 -0400
Subject: [PATCH] Fix warnquota Cc field being set incorrectly when using LDAP
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
warnquota.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/warnquota.c b/warnquota.c
index bc11055..5158094 100644
--- a/warnquota.c
+++ b/warnquota.c
@@ -510,7 +510,7 @@ static int mail_user(struct offenderlist *offender, struct configparams *config)
char *cc_to = lookup_user(config, config->cc_to);
if (cc_to) {
- fprintf(fp, "Cc: %s\n", config->cc_to);
+ fprintf(fp, "Cc: %s\n", cc_to);
free(cc_to);
}
}
--
2.20.1