Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37789338
en ru br
ALT Linux repositórios
S:4.14.0-alt1
5.0: 4.0.4.1-alt9
4.1: 4.0.4.1-alt9
4.0: 4.0.4.1-alt8
3.0: 4.0.4.1-alt5

Group :: Sistema/Base
RPM: shadow

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: shadow-4.0.4.1-alt-userdel-path_prefix.patch
Download


--- shadow-4.0.4.1/src/userdel.c.orig	2004-11-10 18:02:16 +0300
+++ shadow-4.0.4.1/src/userdel.c	2004-11-10 18:02:16 +0300
@@ -653,7 +653,8 @@
 #ifdef EXTRA_CHECK_HOME_DIR
 static int path_prefix (const char *s1, const char *s2)
 {
-	return (strncmp (s2, s1, strlen (s1)) == 0);
+	size_t len = strlen (s1);
+	return (strncmp (s2, s1, len) == 0) && ((s2[len] == '\0') || (s2[len] == '/'));
 }
 #endif
 
 
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