ypserv/ypserv-2.26-request.patch
2011-09-14 10:50:41 +02:00

31 lines
840 B
Diff

diff -up ypserv-2.26/rpc.yppasswdd/update.c.request ypserv-2.26/rpc.yppasswdd/update.c
--- ypserv-2.26/rpc.yppasswdd/update.c.request 2011-08-31 15:25:24.760227846 +0200
+++ ypserv-2.26/rpc.yppasswdd/update.c 2011-08-31 15:26:24.214227279 +0200
@@ -742,7 +742,7 @@ external_update_env (yppasswd *yppw)
*
*===============================================================*/
-static char *
+static void
remove_password (char *str)
{
char *ptr = strstr (str, " o:");
@@ -761,8 +761,6 @@ remove_password (char *str)
while (*ptr && *ptr != ' ')
*ptr++ = 'X';
}
-
- return ptr;
}
static int
@@ -940,7 +938,7 @@ external_update_pipe (yppasswd *yppw, ch
fclose(fp);
if (!debug_flag)
- parentmsg = remove_password (parentmsg);
+ remove_password (parentmsg);
if (strspn(childresponse, "OK") < 2)
{