[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: SimplePAMApps 0.54preB



Here is a patch for the HOME problem, I also note that PAM_RHOST is not
being set correctly, I will submit a different patch if/when I fix it.

cheers, kinch

--- login.c	1997/02/04 01:28:26	1.1
+++ login.c	1997/02/04 01:20:20
@@ -1,10 +1,7 @@
 /*
- * $Id: login.c,v 1.1 1997/02/04 01:28:26 kinch Exp kinch $
+ * $Id: login.c,v 1.2 1997/01/29 03:35:03 morgan Exp morgan $
  *
  * $Log: login.c,v $
- * Revision 1.1  1997/02/04 01:28:26  kinch
- * Initial revision
- *
  * Revision 1.2  1997/01/29 03:35:03  morgan
  * update for release
  *
@@ -27,7 +24,7 @@
  */
 
 static const char rcsid[] =
-"$Id: login.c,v 1.1 1997/02/04 01:28:26 kinch Exp kinch $\n"
+"$Id: login.c,v 1.2 1997/01/29 03:35:03 morgan Exp morgan $\n"
 " - Login application. <morgan@parc.power.net>"
 ;
 
@@ -438,15 +435,15 @@
 	    exit_program(1, 0, PAM_ABORT,". %s not available either; exiting\n"
 			 , DEFAULT_HOME);
 	}
-	if (!pw_dir || pw_dir == '\0') {
+	if (!pw_dir || *pw_dir == '\0') {
 	    fprintf(stderr, ". setting to " DEFAULT_HOME "\n");
 	    pw_dir = DEFAULT_HOME;
 	} else {
-	    fprintf(stderr, ". changing to " DEFAULT_HOME "\n");
+	    fprintf(stderr, ". changing to %s \n", pw_dir);
 	}
     }
 
-    if (pam_misc_setenv(pamh, "HOME", DEFAULT_HOME, 0) != PAM_SUCCESS) {
+    if (pam_misc_setenv(pamh, "HOME", pw_dir, 0) != PAM_SUCCESS) {
 	D(("failed to set $HOME"));
 	fprintf(stderr, "Warning: unable to set HOME environment variable\n");
     }




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []