diff -Nurp xdm-1.1.6/greeter/greet.c xdm-1.1.6-allowNullPasswd/greeter/greet.c --- xdm-1.1.6/greeter/greet.c 2007-05-30 22:03:38.000000000 +0400 +++ xdm-1.1.6-allowNullPasswd/greeter/greet.c 2011-06-03 02:50:27.717616005 +0400 @@ -431,6 +431,7 @@ greet_user_rtn GreetUser( struct dlfuncs *dlfuncs) { int i; + Arg arglist[3]; #ifdef GREET_LIB /* @@ -489,6 +490,10 @@ greet_user_rtn GreetUser( openlog("xdm", LOG_ODELAY, LOG_AUTH); #endif + XtSetArg (arglist[0], XtNallowNullPasswd, (char *) &(greet->allow_null_passwd)); + XtSetArg (arglist[1], XtNallowRootLogin, (char *) &(greet->allow_root_login)); + XtGetValues (login, arglist, 2); + for (;;) { #ifdef USE_PAM