Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37841817
en ru br
ALT Linux repositórios
S:4.06.0.7.100b-alt1
5.0: 3.14-alt1
4.1: 3.14-alt1
4.0: 3.14-alt1
3.0: 3.13-alt1

Group :: Sistema/Configurações/Rede
RPM: quota

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: quota-3.13-alt-getprivs.patch
Download


diff -upk.orig quota-3.13.orig/quotaops.c quota-3.13/quotaops.c
--- quota-3.13.orig/quotaops.c	2005-06-01 07:21:30 +0000
+++ quota-3.13/quotaops.c	2005-06-27 21:34:51 +0000
@@ -97,8 +97,8 @@ struct dquot *getprivs(qid_t id, struct 
 	int j, ngroups;
 	uid_t euid;
 	gid_t gidset[NGROUPS], *gidsetp;
-	char name[MAXNAMELEN];
 #endif
+	char name[MAXNAMELEN];
 
 	for (i = 0; handles[i]; i++) {
 #if defined(BSD_BEHAVIOUR)
@@ -151,9 +151,13 @@ struct dquot *getprivs(qid_t id, struct 
 
 		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));
+			if (errno != ENOENT && (errno != ECONNREFUSED || !quiet)) {
+				const char *err_text = strerror(errno);
+				id2name(id, handles[i]->qh_type, name);
+				errstr(_("%s: error while getting quota on %s for %s %u: %s\n"),
+					name, handles[i]->qh_quotadev,
+					type2name(handles[i]->qh_type), id, err_text);
+			}
 			continue;
 		}
 		if (qhead == NULL)
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009