~kennylevinsen/greetd

88571980c5bb826d9d1173bccdd97b6599da482c — Kenny Levinsen 4 months ago 522b835
pam: Remove fallback to the login service

This is just an old legacy feature, no need to carry it around anymore.
Users need to ensure that there is a service file for greetd, and if
they are free to copy the one intended for login(1).
1 files changed, 0 insertions(+), 6 deletions(-)

M greetd/src/server.rs
M greetd/src/server.rs => greetd/src/server.rs +0 -6
@@ 203,12 203,6 @@ pub async fn main(config: Config) -> Result<(), Error> {
        &config.file.general.service
    } else if Path::new(&format!("/etc/pam.d/{}", config.file.general.service)).exists() {
        &config.file.general.service
    } else if Path::new("/etc/pam.d/login").exists() {
        eprintln!(
            "warning: PAM '{}' service missing, falling back to 'login'",
            config.file.general.service
        );
        "login"
    } else {
        return Err(format!("PAM '{}' service missing", config.file.general.service).into());
    };