]> sourceware.org Git - newlib-cygwin.git/commitdiff
* syscalls.cc (ftruncate64): Log length as long long.
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 8 Nov 2003 16:38:34 +0000 (16:38 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 8 Nov 2003 16:38:34 +0000 (16:38 +0000)
(logout): Erase ut_host.  Don't write wtmp entry.  Return 1 only
if matching utmp entry has been found, 0 otherwise.

winsup/cygwin/ChangeLog
winsup/cygwin/syscalls.cc

index 79e17439679f99b07ed14d71a5ca2770b6b2c8eb..6e2bd28d097fb3814cf841a9a7522832f09348a1 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-08  Corinna Vinschen  <corinna@vinschen.de>
+
+       * syscalls.cc (ftruncate64): Log length as long long.
+       (logout): Erase ut_host.  Don't write wtmp entry.  Return 1 only
+       if matching utmp entry has been found, 0 otherwise.
+
 2003-11-08  Corinna Vinschen  <corinna@vinschen.de>
 
        * external.cc (cygwin_internal): Add CW_GET_UID_FROM_SID and
index 2bda5ddd74796ac5f5cf267b02ef64ba0b717be6..dfc5f0f978472630dec0a2a5ce830dfd0cea2b70 100644 (file)
@@ -1829,7 +1829,7 @@ ftruncate64 (int fd, _off64_t length)
        }
     }
 
-  syscall_printf ("%d = ftruncate (%d, %d)", res, fd, length);
+  syscall_printf ("%d = ftruncate (%d, %D)", res, fd, length);
   return res;
 }
 
@@ -2657,15 +2657,14 @@ logout (char *line)
     {
       ut->ut_type = DEAD_PROCESS;
       memset (ut->ut_user, 0, sizeof ut->ut_user);
+      memset (ut->ut_host, 0, sizeof ut->ut_host);
       time (&ut->ut_time);
-      updwtmp (_PATH_WTMP, &ut_buf);
       debug_printf ("set logout time for %s", line);
-      memset (ut->ut_line, 0, sizeof ut_buf.ut_line);
-      ut->ut_time = 0;
       pututline (ut);
       endutent ();
+      return 1;
     }
-  return 1;
+  return 0;
 }
 
 static int utmp_fd = -1;
This page took 0.047719 seconds and 5 git commands to generate.