summaryrefslogtreecommitdiff
path: root/quotacheck_v1.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-05-02 09:32:22 +0000
committerjkar8572 <jkar8572>2001-05-02 09:32:22 +0000
commit84ec12aa207cb8d5323b63847bfd8115881f2886 (patch)
tree9533951fedda68167081028741a9ec3fd8ad547b /quotacheck_v1.c
parent9c4a512419c660c0513db48e038169167e3e7d25 (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.c8
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;
}