[BusyBox-cvs] CVS update of busybox/loginutils (adduser.c)

Erik Andersen andersen at codepoet.org
Mon Aug 16 09:07:41 UTC 2004


    Date: Monday, August 16, 2004 @ 03:07:41
  Author: andersen
    Path: /var/cvs/busybox/loginutils

Modified: adduser.c (1.9 -> 1.10)

Bertrand Baudet writes:

Looks like the -D and -H options of the adduser applet aren't handle
properly in BusyBox.

This patch fixes the masks definition for those options according to
there position in the optstring.

Patch against RC2 but should also apply cleanly against CVS.

Bertrand


Index: busybox/loginutils/adduser.c
diff -u busybox/loginutils/adduser.c:1.9 busybox/loginutils/adduser.c:1.10
--- busybox/loginutils/adduser.c:1.9	Mon Mar 15 01:28:46 2004
+++ busybox/loginutils/adduser.c	Mon Aug 16 03:07:39 2004
@@ -238,8 +238,8 @@
 	}
 }
 
-#define SETPASS				1
-#define MAKEHOME			4
+#define SETPASS				(1 << 4)
+#define MAKEHOME			(1 << 6)
 
 /*
  * adduser will take a login_name as its first parameter.



More information about the busybox-cvs mailing list