diff options
author | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 12:47:05 -0800 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 12:47:05 -0800 |
commit | 4c51da22e068907adb7857d50f5109a467c94d7c (patch) | |
tree | becf5fbae5dfcbe8896355f59042dc8eaefa7f37 /Linux-PAM/examples/xsh.c | |
parent | efd31890b5ed496a5a00c08a262da240e66a4ddc (diff) | |
parent | ab9e8ba11f464fc083fc65a0bc695d60ebc86f3e (diff) | |
download | pam-4c51da22e068907adb7857d50f5109a467c94d7c.tar.gz pam-4c51da22e068907adb7857d50f5109a467c94d7c.tar.bz2 pam-4c51da22e068907adb7857d50f5109a467c94d7c.zip |
New upstream version 0.79
Diffstat (limited to 'Linux-PAM/examples/xsh.c')
-rw-r--r-- | Linux-PAM/examples/xsh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Linux-PAM/examples/xsh.c b/Linux-PAM/examples/xsh.c index 0e092402..3f5246f5 100644 --- a/Linux-PAM/examples/xsh.c +++ b/Linux-PAM/examples/xsh.c @@ -1,18 +1,18 @@ /* - * $Id: xsh.c,v 1.1.1.2 2002/09/15 20:08:35 hartmans Exp $ + * $Id: xsh.c,v 1.7 2004/09/24 09:18:21 kukuk Exp $ */ /* Andrew Morgan (morgan@kernel.org) -- an example application * that invokes a shell, based on blank.c */ +#include <security/_pam_aconf.h> + #include <stdio.h> #include <stdlib.h> #include <security/pam_appl.h> #include <security/pam_misc.h> -#include <security/_pam_aconf.h> - #include <pwd.h> #include <sys/types.h> #include <unistd.h> @@ -155,7 +155,7 @@ int main(int argc, char **argv) fprintf(stderr,"%s: problem closing a session\n",argv[0]); break; } - + /* `0' could be as above */ retcode = pam_setcred(pamh, PAM_DELETE_CRED); bail_out(pamh,0,retcode,"pam_setcred"); |