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 /xqmstats.c | |
parent | 9c4a512419c660c0513db48e038169167e3e7d25 (diff) | |
download | linuxquota-84ec12aa207cb8d5323b63847bfd8115881f2886.tar.gz |
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 'xqmstats.c')
-rw-r--r-- | xqmstats.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -7,11 +7,14 @@ #include <stdio.h> #include <unistd.h> #include <string.h> +#include "common.h" #include "pot.h" #define XQMFILE "/proc/fs/xfs/xqm" #define STATFILE "/proc/fs/xfs/stat" +char *progname; + int main(int argc, char **argv) { FILE *stats, *xqm; @@ -19,11 +22,12 @@ int main(int argc, char **argv) unsigned values[8]; gettexton(); + progname = basename(argv[0]); memset(values, 0, sizeof(unsigned) * 8); if ((stats = fopen(STATFILE, "r")) == NULL || (xqm = fopen(XQMFILE, "r")) == NULL) { - fprintf(stderr, _("The running kernel does not support XFS\n")); + errstr(_("The running kernel does not support XFS\n")); return 1; } while (!feof(stats)) { |