diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-11-08 16:38:34 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-11-08 16:38:34 +0000 |
commit | 1db928422e2a2a3140f44f2c8dab9ae33cf751fb (patch) | |
tree | 9cd81b363e214bc57276db602695c43e1fc9ef9c /winsup/cygwin/syscalls.cc | |
parent | 8e68687d2a668ec43831cf91babf72168d4921c0 (diff) | |
download | cygnal-1db928422e2a2a3140f44f2c8dab9ae33cf751fb.tar.gz cygnal-1db928422e2a2a3140f44f2c8dab9ae33cf751fb.tar.bz2 cygnal-1db928422e2a2a3140f44f2c8dab9ae33cf751fb.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 2bda5ddd7..dfc5f0f97 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -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; |