Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37569937
en ru br
ALT Linux repositórios
S:4.2-alt3
5.0: 2.6.3-alt1
4.1: 2.6.3-alt1
4.0: 2.6.1-alt3.1
3.0: 1.12.0-alt2

Group :: Sistema/Configurações/Hadware
RPM: mdadm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: mdadm-2.5.5-alt-asprintf.patch
Download


--- mdadm-2.5.5/config.c.orig	2006-10-27 09:50:52 +0400
+++ mdadm-2.5.5/config.c	2006-10-27 09:55:50 +0400
@@ -545,7 +545,7 @@ void mailfromline(char *line)
 			alert_mail_from = strdup(w);
 		else {
 			char *t= NULL;
-			asprintf(&t, "%s %s", alert_mail_from, w);
+			if (asprintf(&t, "%s %s", alert_mail_from, w)) {}
 			free(alert_mail_from);
 			alert_mail_from = t;
 		}
--- mdadm-2.5.5/Assemble.c.orig	2006-10-27 09:56:54 +0400
+++ mdadm-2.5.5/Assemble.c	2006-10-27 09:58:37 +0400
@@ -377,11 +377,12 @@ int Assemble(struct supertype *st, char 
 		st->ss->getinfo_super(&info, first_super);
 		c = strchr(info.name, ':');
 		if (c) c++; else c= info.name;
-		if (isdigit(*c) && ((ident->autof & 7)==4 || (ident->autof&7)==6))
+		if (isdigit(*c) && ((ident->autof & 7)==4 || (ident->autof&7)==6)) {
 			/* /dev/md/d0 style for partitionable */
-			asprintf(&mddev, "/dev/md/d%s", c);
-		else
-			asprintf(&mddev, "/dev/md/%s", c);
+			if (asprintf(&mddev, "/dev/md/d%s", c)) {}
+		} else {
+			if (asprintf(&mddev, "/dev/md/%s", c)) {}
+		}
 		mdfd = open_mddev(mddev, ident->autof);
 		if (mdfd < 0)
 			return mdfd;
 
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