Your message dated Sun, 4 Feb 2018 15:50:56 +0100
with message-id <20180204145056.pcbxmlwxczdj2...@percival.namespace.at>
and subject line Re: #769743: fixed in stable
has caused the Debian Bug report #769743,
regarding sulogin: crashes when /etc/passwd is missing
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
769743: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769743
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: sysvinit-utils
Version: 2.88dsf-57
Severity: important

sulogin crashes when /etc/passwd is unavailable.

See the following code from sulogin.c:

    if ((pwd = getrootpwent(opt_e)) == NULL) {
       fprintf(stderr, "sulogin: cannot open password database!\n");
       sleep(2);
    }

    ...
    if ((strcmp(pwd->pw_passwd, "*") == 0) ||
        (strcmp(pwd->pw_passwd, "!") == 0)) {
         ...

When the fprintf in the first if() case happens, pwd is NULL, and
de-referencing that crashes in the second if.

This affects users where initramfs-tools cannot succesfully mount /,
leaving them with a more than necessary broken system.

Thanks,
Christian

--- End Message ---
--- Begin Message ---
Already fixed in stable, closing.

--- End Message ---

Reply via email to