diff options
author | jkar8572 <jkar8572> | 2001-05-02 09:32:22 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-05-02 09:32:22 +0000 |
commit | 84ec12aa207cb8d5323b63847bfd8115881f2886 (patch) | |
tree | 9533951fedda68167081028741a9ec3fd8ad547b /quotacheck_v1.c | |
parent | 9c4a512419c660c0513db48e038169167e3e7d25 (diff) |
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.
Diffstat (limited to 'quotacheck_v1.c')
-rw-r--r-- | quotacheck_v1.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |