Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37901290
en ru br
ALT Linux repositórios
S:1.60-alt19
5.0: 1.60-alt15
4.1: 1.60-alt13
4.0: 1.60-alt13
3.0: 1.60-alt12

Group :: Sistema/Configurações/Rede
RPM: net-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: net-tools-1.60-rh-nameif-bound.patch
Download


--- net-tools-1.60/nameif.c.ncpy	2006-10-03 14:24:21.000000000 +0200
+++ net-tools-1.60/nameif.c	2006-10-03 14:22:43.000000000 +0200
@@ -100,8 +100,8 @@
 	struct ifreq ifr;
 	opensock(); 
 	memset(&ifr,0,sizeof(struct ifreq));
-	strcpy(ifr.ifr_name, oldname); 
-	strcpy(ifr.ifr_newname, newname); 
+	strncpy(ifr.ifr_name, oldname, IF_NAMESIZE); 
+	strncpy(ifr.ifr_newname, newname, IF_NAMESIZE); 
 	return ioctl(ctl_sk, SIOCSIFNAME, &ifr);
 }
 
 
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