Jérémie Courrèges-Anglas:

> Diff for security/cfs.  Please close your eyes before running "make".

I can't run make because cfs only builds on obsolete platforms. :->

> +--- getpass.c.orig   Wed Dec  3 22:51:34 1997
> ++++ getpass.c        Sat Nov 30 02:21:29 2013
> +@@ -45,7 +45,7 @@
> + #include "cfs.h"
> + #include "shs.h"
> + 
> +-#if defined(irix) || defined(linux)
> ++#if defined(irix) || defined(linux) || defined(__OpenBSD__)
> + /* hacks to use POSIX style termios instead of old BSD style sgttyb */
> + #include <termios.h>
> + #define sgttyb termios

That's the least intrusive way to do it.  You also need the
"|| defined(__OpenBSD__)" a few lines higher up where <sgtty.h>
is included, which will go away with libcompat.

Alternatively, we could gut the whole function body and just use
getpass().

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to