]> andersk Git - openssh.git/blobdiff - loginrec.c
[buildpkg.sh.in] Last minute fix didn't make it in the .in file. :-(
[openssh.git] / loginrec.c
index ef3e8e29051e5eeb1590a30d5ca6295139fcf927..897921c633d5c00e45a764a427189cffde8ac913 100644 (file)
@@ -1183,6 +1183,7 @@ wtmp_get_entry(struct logininfo *li)
 static int
 wtmpx_write(struct logininfo *li, struct utmpx *utx)
 {
+#ifndef HAVE_UPDWTMPX
        struct stat buf;
        int fd, ret = 1;
 
@@ -1202,6 +1203,10 @@ wtmpx_write(struct logininfo *li, struct utmpx *utx)
        (void)close(fd);
 
        return ret;
+#else
+       updwtmpx(WTMPX_FILE, utx);
+       return 1;
+#endif
 }
 
 
@@ -1349,7 +1354,7 @@ static int
 syslogin_perform_logout(struct logininfo *li)
 {
 # ifdef HAVE_LOGOUT
-       char line[8];
+       char line[UT_LINESIZE];
 
        (void)line_stripname(line, li->line, sizeof(line));
 
This page took 0.037649 seconds and 4 git commands to generate.