]> andersk Git - openssh.git/blobdiff - loginrec.c
Hopefully things did not get mixed around too much. It compiles under
[openssh.git] / loginrec.c
index d6aa0cfc336b0378ce4d987cda77e8f931e2aefc..b664a9cfec86ef329223376359a546be38b7ecce 100644 (file)
  **   Solaris
  **   HP-UX 10.20 (gcc only)
  **   IRIX
- **    NeXT - M68k/HPPA (4.2/3.3)
+ **   NeXT - M68k/HPPA/Sparc (4.2/3.3)
  **
  ** Testing required: Please send reports!
  **   NetBSD
 #include "ssh.h"
 #include "xmalloc.h"
 #include "loginrec.h"
+#include "log.h"
+#include "atomicio.h"
 
 RCSID("$Id$");
 
+#ifdef HAVE_UTIL_H
+#  include <util.h>
+#endif
+
+#ifdef HAVE_LIBUTIL_H
+#   include <libutil.h>
+#endif
+
 /**
  ** prototypes for helper functions in this file
  **/
@@ -508,13 +518,8 @@ char *
 line_stripname(char *dst, const char *src, int dstsize)
 {
        memset(dst, '\0', dstsize);
-#ifdef sgi
-       if (strncmp(src, "/dev/tty", 8) == 0)
-               strlcpy(dst, src + 8, dstsize);
-#else
        if (strncmp(src, "/dev/", 5) == 0)
                strlcpy(dst, src + 5, dstsize);
-#endif
        else
                strlcpy(dst, src, dstsize);
        return dst;
This page took 0.035662 seconds and 4 git commands to generate.