[RFC, PATCH] passwd size reduction

Bernhard Fischer rep.nop at aon.at
Mon Nov 27 18:07:29 UTC 2006


>--- loginutils/passwd.c.01e	2006-11-27 18:00:52.000000000 +0100
>+++ loginutils/passwd.c	2006-11-27 18:44:02.000000000 +0100
>@@ -25,13 +25,12 @@
> 
> static int update_passwd(const struct passwd *pw, const char *crypt_pw)
> {
>-	char filename[1024];
>-	char buf[1025];
>+	char *filename;
>+	char *buf;
> 	char buffer[80];
> 	char username[32];
> 	char *pw_rest;
>-	int mask;
>-	int continued;
>+	int continued = 0;

Silly typo. That should have read continued = 1;
Sorry.



More information about the busybox mailing list