diff options
author | jkar8572 <jkar8572> | 2001-11-09 08:17:35 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-11-09 08:17:35 +0000 |
commit | 2eadc9b99d9f2bfa7a633ad023628635d26efcdc (patch) | |
tree | 4d7060c563a3e172c96974b15f97a4938e67e864 /warnquota.c | |
parent | 0e022d5e02f6247d237fca8bb70ea6e96cba9182 (diff) |
Added error message when warnquota ignores line in quotatab.
Diffstat (limited to 'warnquota.c')
-rw-r--r-- | warnquota.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/warnquota.c b/warnquota.c index b17e8f8..0d8f9c1 100644 --- a/warnquota.c +++ b/warnquota.c @@ -10,7 +10,7 @@ * * Author: Marco van Wieringen <mvw@planets.elm.net> * - * Version: $Id: warnquota.c,v 1.4 2001/11/09 08:10:42 jkar8572 Exp $ + * Version: $Id: warnquota.c,v 1.5 2001/11/09 08:17:35 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 @@ -242,7 +242,11 @@ void get_quotatable(void) if (buffer[0] == '#' || /* comment */ !quotatable[qtab_i].devname || !quotatable[qtab_i].devdesc || strlen(quotatable[qtab_i].devname) < 2 || - strlen(quotatable[qtab_i].devdesc) < 2 /* stupid root */ )qtab_i--; + strlen(quotatable[qtab_i].devdesc) < 2 /* stupid root */ ) { + if (buffer[0] != '#' && buffer[0] != '\n') + errstr(_("Possible error in quotatab. Ignoring %s\n"), buffer); + qtab_i--; + } } fclose(fp); free(filename); @@ -333,12 +337,12 @@ void readconfigfile(const char *filename, struct configparams *config) strncpy(config->phone, value, CNF_BUFFER); } else { /* not matched at all */ - errstr( "Error in config file (line %d), ignoring\n", + errstr(_("Error in config file (line %d), ignoring\n"), line); } } else { /* no '=' char in this line */ - errstr( "Possible error in config file (line %d), ignoring\n", + errstr(_("Possible error in config file (line %d), ignoring\n"), line); } } |