Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 1995 09:50:03 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        peter@jhome.dialix.com (Peter Wemm)
Cc:        roberto@keltia.freenix.fr, CVS-commiters@freefall.freebsd.org, cvs-sys@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/i386/isa isa.c
Message-ID:  <199511010850.JAA16876@uriah.heep.sax.de>
In-Reply-To: <Pine.BSF.3.91.951101151856.22432P-100000@jhome.DIALix.COM> from "Peter Wemm" at Nov 1, 95 03:30:28 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Peter Wemm wrote:

> What bothers me, is how a non-setuid process suddenly got a new getlogin
> name.  Maybe it's a perl bug (but it does little more than a
> strdup(getlogin()) - it'd be hard for that code to have a bug..), or a libc 
> bug with the static buffer getting munched. 

    case O_GETLOGIN:
#ifdef HAS_GETLOGIN
        if (!(tmps = getlogin()))
            goto say_undef;
        str_set(str,tmps);
#else
        fatal("Unsupported function getlogin");
#endif
        break;

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511010850.JAA16876>