summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/.cvsignore1
-rw-r--r--examples/README1
-rw-r--r--examples/blank.c4
-rw-r--r--examples/check_user.c4
-rw-r--r--examples/vpass.c2
5 files changed, 4 insertions, 8 deletions
diff --git a/examples/.cvsignore b/examples/.cvsignore
index 752507ee..12e16f1b 100644
--- a/examples/.cvsignore
+++ b/examples/.cvsignore
@@ -6,4 +6,3 @@ Makefile
Makefile.in
.deps
.libs
-
diff --git a/examples/README b/examples/README
index f4ae9511..fee734dd 100644
--- a/examples/README
+++ b/examples/README
@@ -10,4 +10,3 @@ application it might be a place to start...
xsh is new as of Linux-PAM-0.31, it is identical to blank, but invokes
/bin/sh if the user is authenticated.
-
diff --git a/examples/blank.c b/examples/blank.c
index 9d51756e..82100139 100644
--- a/examples/blank.c
+++ b/examples/blank.c
@@ -50,7 +50,7 @@ int main(int argc, char **argv)
fprintf(stderr,"usage: %s [username]\n",argv[0]);
} else if (argc == 2) {
username = argv[1];
- }
+ }
/* initialize the Linux-PAM library */
retcode = pam_start("blank", username, &conv, &pamh);
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
fprintf(stderr,"%s: problem closing a session\n",argv[0]);
break;
}
-
+
retcode = pam_setcred(pamh, PAM_DELETE_CRED);
bail_out(pamh,0,retcode,"pam_setcred2");
diff --git a/examples/check_user.c b/examples/check_user.c
index 4a33f2a8..89cc137b 100644
--- a/examples/check_user.c
+++ b/examples/check_user.c
@@ -1,6 +1,6 @@
/*
$Id$
-
+
This program was contributed by Shane Watts <shane@icarus.bofh.asn.au>
slight modifications by AGM.
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
}
retval = pam_start("check", user, &conv, &pamh);
-
+
if (retval == PAM_SUCCESS)
retval = pam_authenticate(pamh, 0); /* is user really user? */
diff --git a/examples/vpass.c b/examples/vpass.c
index a54ec061..f73b3611 100644
--- a/examples/vpass.c
+++ b/examples/vpass.c
@@ -47,5 +47,3 @@ int main(void)
pam_end(pamh, res);
exit(0);
}
-
-