mutter-launch: remove PAM usage

Left-overs from the weston-launch import

https://bugzilla.gnome.org/show_bug.cgi?id=707584
This commit is contained in:
Giovanni Campagna 2013-09-09 18:08:40 +02:00
parent 5b3340e585
commit 3e341e83d9

View File

@ -50,7 +50,6 @@
#include <pwd.h>
#include <grp.h>
#include <security/pam_appl.h>
#include <xf86drm.h>
@ -68,8 +67,6 @@ enum vt_state {
};
struct weston_launch {
struct pam_conv pc;
pam_handle_t *ph;
int tty;
int ttynr;
int sock[2];
@ -79,7 +76,6 @@ struct weston_launch {
pid_t child;
int verbose;
char *new_user;
struct termios terminal_attributes;
int kb_mode;
@ -466,14 +462,6 @@ quit(struct weston_launch *wl, int status)
tty_reset(wl);
if (wl->new_user) {
err = pam_close_session(wl->ph, 0);
if (err)
fprintf(stderr, "pam_close_session failed: %d: %s\n",
err, pam_strerror(wl->ph, err));
pam_end(wl->ph, err);
}
exit(status);
}