766ce6a059
fixed hiding the change request when external script is used in rpc.yppasswdd
31 lines
840 B
Diff
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)
|
|
{
|