From 4a0ccd0b25a224a95c574b92e19c21eb65dfe103 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Tue, 6 Jan 2004 12:19:31 +0000 Subject: Fixed bug in quotacheck(8) which counted directories twice sometimes. (Jan Kara) --- warnquota.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'warnquota.c') diff --git a/warnquota.c b/warnquota.c index 9fd68c8..89df4f6 100644 --- a/warnquota.c +++ b/warnquota.c @@ -10,7 +10,7 @@ * * Author: Marco van Wieringen * - * Version: $Id: warnquota.c,v 1.16 2004/01/05 09:34:42 jkar8572 Exp $ + * Version: $Id: warnquota.c,v 1.17 2004/01/06 12:19:31 jkar8572 Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -301,8 +301,9 @@ int mail_user(struct offenderlist *offender, struct configparams *config) char timebuf[MAXTIMELEN]; char numbuf[3][MAXNUMLEN]; struct util_dqblk *dqb; - char *to = NULL, searchbuf[256]; + char *to = NULL; #ifdef USE_LDAP_MAIL_LOOKUP + char searchbuf[256]; LDAPMessage *result, *entry; BerElement *ber = NULL; struct berval **bvals = NULL; @@ -863,4 +864,5 @@ int main(int argc, char **argv) warn_quota(); wc_exit(0); + return 0; } -- cgit v1.2.3