search for: ut_linesize

Displaying 14 results from an estimated 14 matches for "ut_linesize".

2004 Apr 08
3
patch for "gone - no logout" output from last(1)
...low is my version of the patch. Since I'm not on this list, there may be other, better versions that have already found their way here. If so, then I apologize for wasting your time. I did try to be good and wrap the change in an appropriate #ifdef, and the change is very simple - just using UT_LINESIZE for the length of the array if it is defined. -John -- John P. Eisenmenger jpe at eisenmenger.org *** openssh-3.7.1p2/loginrec.c.orig Sun Jul 6 01:20:46 2003 --- openssh-3.7.1p2/loginrec.c Wed Apr 7 19:35:43 2004 *************** *** 1349,1355 **** --- 1349,1359 ---- syslogin_perform_logout(...
1999 Dec 28
1
ANNOUNCE: openssh-1.2.1pre22
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have just uploaded 1.2.1pre22 to: http://violet.ibs.com.au/openssh/files/ This release consists of portability fixes and cleanups. It also resolves two issues which may have caused security problems - If you OS header files did not define PATH_STDPATH, then an unsafe path was used by default (it contained an implicit '.'). Thanks
1999 Dec 28
1
ANNOUNCE: openssh-1.2.1pre22
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have just uploaded 1.2.1pre22 to: http://violet.ibs.com.au/openssh/files/ This release consists of portability fixes and cleanups. It also resolves two issues which may have caused security problems - If you OS header files did not define PATH_STDPATH, then an unsafe path was used by default (it contained an implicit '.'). Thanks
2005 Mar 30
1
utmp update for bsd systems
...; topslot=%d\n", + u->ut_line, u->ut_name, claim, topslot)); + + while (1) { + if (read(fd, &ubuf, sizeof(ubuf)) == sizeof(ubuf)) { + if ((claim && !ubuf.ut_name[0]) || + (!claim && ubuf.ut_name[0] && + !strncmp(ubuf.ut_line, u->ut_line, UT_LINESIZE))) { + (void) lseek(fd, -(off_t)sizeof(struct utmp), + SEEK_CUR); + break; + } + topslot++; + } else { + (void) lseek(fd, (off_t)(topslot * + sizeof(struct utmp)), SEEK_SET); + break; + } + } + + if (! claim) { + memset((char *)&u->ut_name, '\0', sizeof(...
2005 Apr 14
1
utmp update for bsd systems (try 2)
...; topslot=%d\n", + u->ut_line, u->ut_name, claim, topslot)); + + while (1) { + if (read(fd, &ubuf, sizeof(ubuf)) == sizeof(ubuf)) { + if ((claim && !ubuf.ut_name[0]) || + (!claim && ubuf.ut_name[0] && + !strncmp(ubuf.ut_line, u->ut_line, UT_LINESIZE))) { + (void) lseek(fd, -(off_t)sizeof(struct utmp), + SEEK_CUR); + break; + } + topslot++; + } else { + (void) lseek(fd, (off_t)(topslot * + sizeof(struct utmp)), SEEK_SET); + break; + } + } + + if (! claim) { + memset((char *)&u->ut_name, '\0', sizeof(...
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...*** 1319,1324 **** --- 1325,1349 ---- #define LL_FILE 1 #define LL_DIR 2 #define LL_OTHER 3 + + /* struct lastlog is not defined under QNX: define it */ + #if defined(__QNX__) && !defined(__QNXNTO__) + #define __time_t time_t + + /* from Linux's <bits/utmp.h> */ + #define UT_LINESIZE 32 + #define UT_NAMESIZE 32 + #define UT_HOSTSIZE 256 + + /* The structure describing an entry in the database of + previous logins. */ + struct lastlog + { + __time_t ll_time; + char ll_line[UT_LINESIZE]; + char ll_host[UT_HOSTSIZE]; + }; + #endif /* __QNX__ &&...
1999 Dec 24
5
ANNOUNCE: openssh-1.2.1pre20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 openssh-1.2.1pre20 has been released at: http://violet.ibs.com.au/openssh/files/ This release integrates more of Andre Lucas' portability patch, Ben Taylor's utmpx patch and some cleanups and bugfixes of my own. The auth-passwd failures should be fixed, as should lastlog support on NetBSD. Since Andre Lucas' patch included platform
1999 Dec 24
5
ANNOUNCE: openssh-1.2.1pre20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 openssh-1.2.1pre20 has been released at: http://violet.ibs.com.au/openssh/files/ This release integrates more of Andre Lucas' portability patch, Ben Taylor's utmpx patch and some cleanups and bugfixes of my own. The auth-passwd failures should be fixed, as should lastlog support on NetBSD. Since Andre Lucas' patch included platform
2004 Apr 28
1
[Bug 855] doesn't properly log logout event in utmp entry when pts bigger than 999
http://bugzilla.mindrot.org/show_bug.cgi?id=855 Summary: doesn't properly log logout event in utmp entry when pts bigger than 999 Product: Portable OpenSSH Version: 3.8p1 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo:
1999 Nov 19
0
[patch2, 1.2pre13] solaris 7 patch for bsd-login.c
...) { + #ifdef HAVE_HOST_IN_UTMP (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); /* * Prevent luser from zero'ing out ut_host. *************** *** 70,75 **** --- 74,80 ---- strncmp(old_ut.ut_line, utp->ut_line, UT_LINESIZE) == 0 && strncmp(old_ut.ut_name, utp->ut_name, UT_NAMESIZE) == 0) (void)memcpy(utp->ut_host, old_ut.ut_host, UT_HOSTSIZE); + #endif (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); (void)write(fd...
2001 Mar 05
0
Question re wtmp and 2.5.1
Hi, I've got a 2.8-RELEASE box that uses the old utmp.h with: #define UT_NAMESIZE 8 #define UT_LINESIZE 8 #define UT_HOSTSIZE 16 2.5.1's ssh/login.c seems use this by including <utmp.h>. However, when a remote user logs into this box, the wtmp file is munged from that point on. There are no notes about this on the OpenSSH site ("OpenSSH compiles cleanly on OpenBSD 2.8&q...
2008 Jul 28
0
PTY allocation without being root
...e, but one of the nice features is that we'll finally create/destroy PTY's on demand. Creating PTY's on demand gave me an idea: what if we could perform resource limiting on PTY's? PTY's aren't infinitely available on FreeBSD (right now we can only allocate 1000, because of UT_LINESIZE). This means a single user could block other users from logging in, by running: for (;;) posix_openpt(O_RDWR|O_NOCTTY); A couple of weeks ago, I created an experimental patch to add a new rlimit. Unfortunately, it seemed OpenSSH just ignored the limit, which only meant one thing: OpenSSH allocat...
2004 Jan 26
6
Kernel modules listing
Hi all, please, is there some utility/command/... to list all installed kernel modules ? Peter Rosa
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
Okay, everything as the first large one I sent today, with a few extra mods. _PATH_MAILDIR is only used in sshd.c, that I can see, so moved the #ifdef from config.h.in to there. several files had __progname defined in the middle of the code, as well as at the top of the code, so cleaned those out. all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus added appropriate