From 84ec12aa207cb8d5323b63847bfd8115881f2886 Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Wed, 2 May 2001 09:32:22 +0000 Subject: Added mntopt.h to dependencies in Makefile.in. Fixed MNTTYPE_REISER to proper string. sprintf->snprintf Merged Marco's patch with errstr(), configurable BSD behaviour Fixed bug in quota detection IO code now opens file only RO if possible. IO code now doesn't open file if not required. Fixed bug in quotaon. Updated all manpages. --- quotacheck_v1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'quotacheck_v1.c') diff --git a/quotacheck_v1.c b/quotacheck_v1.c index db21c94..7fe8012 100644 --- a/quotacheck_v1.c +++ b/quotacheck_v1.c @@ -30,7 +30,8 @@ static void load_dquots(char *filename, int fd, int type) die(1, _("Can't read entry for id %u from quotafile %s: %s\n"), (uint) id, filename, strerror(errno)); if (err != sizeof(ddqblk)) { - fprintf(stderr, _("Entry for id %u is truncated.\n"), (uint) id); + errstr(_("Entry for id %u is truncated.\n"), + (uint) id); break; } dquot = add_dquot(id, type); @@ -58,9 +59,8 @@ static int check_info(char *filename, int fd, int type) die(1, _("Can't read first entry from quotafile %s: %s\n"), filename, strerror(errno)); if (err != sizeof(ddqblk)) { - fprintf(stderr, - _ - ("WARNING: Quotafile %s was probably truncated. Can't save quota settings...\n"), + errstr( + _("WARNING - Quotafile %s was probably truncated. Can't save quota settings...\n"), filename); return -1; } -- cgit v1.2.3