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 /set_limits_example.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 'set_limits_example.c')
-rw-r--r-- | set_limits_example.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/set_limits_example.c b/set_limits_example.c index 52af20c..d437604 100644 --- a/set_limits_example.c +++ b/set_limits_example.c @@ -14,15 +14,14 @@ int copy_user_quota_limits(const char *block_device, uid_t from, uid_t to) return (0); } else { - fprintf(stderr, - _ - ("copy_user_quota_limits: Failed to set userquota for uid %ld : %s\n"), + errstr( + _("copy_user_quota_limits: Failed to set userquota for uid %ld : %s\n"), to, strerror(errno)); return (1); } } else { - fprintf(stderr, + errstr( _("copy_user_quota_limits: Failed to get userquota for uid %ld : %s\n"), from, strerror(errno)); return (1); @@ -38,15 +37,14 @@ int copy_group_quota_limits(const char *block_device, gid_t from, gid_t to) return (0); } else { - fprintf(stderr, - _ - ("copy_group_quota_limits: Failed to set groupquota for uid %ld : %s\n"), + errstr( + _("copy_group_quota_limits: Failed to set groupquota for uid %ld : %s\n"), to, strerror(errno)); return (1); } } else { - fprintf(stderr, + errstr( _("copy_group_quota_limits: Failed to get groupquota for uid %ld : %s\n"), from, strerror(errno)); return (1); |