diff options
author | jkar8572 <jkar8572> | 2005-09-20 10:50:53 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2005-09-20 10:50:53 +0000 |
commit | b6d2587199b6d924511573719b513e278d3dad62 (patch) | |
tree | 0171047b791852f0e008994f83fa79b784a8d6da /quotaops.c | |
parent | 447597643f3c5a642ab8258477fa17e5b07fed41 (diff) | |
download | linuxquota-b6d2587199b6d924511573719b513e278d3dad62.tar.gz |
Fixed error messages in getprivs() (Jan Kara, Brian Morris)
Diffstat (limited to 'quotaops.c')
-rw-r--r-- | quotaops.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -34,7 +34,7 @@ #ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $" #ident "$Copyright: All rights reserved. $" -#ident "$Id: quotaops.c,v 1.16 2005/03/31 11:48:02 jkar8572 Exp $" +#ident "$Id: quotaops.c,v 1.17 2005/09/20 10:50:53 jkar8572 Exp $" #include <rpc/rpc.h> #include <sys/types.h> @@ -118,7 +118,7 @@ struct dquot *getprivs(qid_t id, struct quota_handle **handles, int quiet) if (ngroups > NGROUPS) { gidsetp = malloc(ngroups * sizeof(gid_t)); if (!gidsetp) { - errstr(_("%s: gid set allocation (%d): %s\n"), name, ngroups, strerror(errno)); + errstr(_("gid set allocation (%d): %s\n"), ngroups, strerror(errno)); return (struct dquot *)NULL; } } @@ -128,7 +128,7 @@ struct dquot *getprivs(qid_t id, struct quota_handle **handles, int quiet) if (ngroups < 0) { if (gidsetp != gidset) free(gidsetp); - errstr(_("%s: error while trying getgroups(): %s\n"), name, strerror(errno)); + errstr(_("error while trying getgroups(): %s\n"), strerror(errno)); return (struct dquot *)NULL; } @@ -152,8 +152,8 @@ struct dquot *getprivs(qid_t id, struct quota_handle **handles, int quiet) if (!(q = handles[i]->qh_ops->read_dquot(handles[i], id))) { /* If rpc.rquotad is not running filesystem might be just without quotas... */ if (errno != ENOENT && (errno != ECONNREFUSED || !quiet)) - errstr(_("%s: error while getting quota from %s for %u: %s\n"), - name, handles[i]->qh_quotadev, id, strerror(errno)); + errstr(_("error while getting quota from %s for %u: %s\n"), + handles[i]->qh_quotadev, id, strerror(errno)); continue; } if (qhead == NULL) |