search for: utx

Displaying 20 results from an estimated 30 matches for "utx".

Did you mean: tx
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...loginrec.c" file. diff -Naur openssh-2.9p2.org/loginrec.c openssh-2.9p2.cast/loginrec.c --- openssh-2.9p2.org/loginrec.c Wed May 9 05:34:33 2001 +++ openssh-2.9p2.cast/loginrec.c Thu Jun 28 11:06:22 2001 @@ -887,7 +891,11 @@ /* write a utmpx entry with the system's help (pututxline() and pals) */ # ifdef UTMPX_USE_LIBRARY static int +#ifdef __sparcv9 +utmpx_write_library(struct logininfo *li, struct utmpx *utx) +#else utmpx_write_library(struct logininfo *li, struct utmpx *utx) +#endif { setutxent(); pututxline(utx); @@ -902,7 +910,11 @@ /* write a u...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...ch be changed to only apply to Solaris hosts? Thoughts? Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation -------------- next part -------------- --- loginrec.c~ Mon Oct 29 21:50:40 2001 +++ loginrec.c Mon Nov 19 12:08:34 2001 @@ -701,6 +701,7 @@ line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); set_utmpx_time(li, utx); utx->ut_pid = li->pid; + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); if (li->type == LTYPE_LOGOUT) return; @@ -711,7 +712,6 @@ */ /* strncpy(): Don...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...to the utmpx entry for both a login and a logout. This bugzilla entry duplicates an e-mail I sent in in late November, in case this comes up as a duplicate of a known issue. --- loginrec.c~ Mon Oct 29 21:50:40 2001 +++ loginrec.c Tue Jan 29 10:56:59 2002 @@ -701,6 +701,7 @@ line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); set_utmpx_time(li, utx); utx->ut_pid = li->pid; + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); if (li->type == LTYPE_LOGOUT) return; @@ -711,7 +71...
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...Any ideas? The diffs are against 3.0p1, by the way. Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation -------------- next part -------------- --- loginrec.c.orig Thu Nov 15 09:35:02 2001 +++ loginrec.c Thu Nov 15 09:38:01 2001 @@ -701,6 +701,7 @@ line_stripname(utx->ut_line, li->line, sizeof(utx->ut_line)); set_utmpx_time(li, utx); utx->ut_pid = li->pid; + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); if (li->type == LTYPE_LOGOUT) return; @@ -711,7 +712,6 @@ */ /* strncpy(): Don...
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
2009 Dec 25
2
[openssh-portable] utmpx and ut_name
...ations just #define ut_name to ut_user to keep things happy, but I'd rather not put this obfuscation in any new implementation. I've noticed OpenSSH also uses ut_name, even when using utmpx. I've come up with the following patch: %%% --- loginrec.c +++ loginrec.c @@ -758,8 +758,8 @@ utx->ut_pid = li->pid; /* strncpy(): Don't necessarily want null termination */ - strncpy(utx->ut_name, li->username, - MIN_SIZEOF(utx->ut_name, li->username)); + strncpy(utx->ut_user, li->username, + MIN_SIZEOF(utx->ut_user, li->username)); if (li->...
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...6_addr)) { + ut->ut_addr_v6[0] = ut->ut_addr_v6[3]; + ut->ut_addr_v6[1] = 0; + ut->ut_addr_v6[2] = 0; + ut->ut_addr_v6[3] = 0; + } + } +# endif } #endif /* USE_UTMP || USE_WTMP || USE_LOGIN */ @@ -689,6 +705,9 @@ void construct_utmpx(struct logininfo *li, struct utmpx *utx) { +# ifdef HAVE_ADDR_V6_IN_UTMP + struct sockaddr_in6 *sa6; +# endif memset(utx, '\0', sizeof(*utx)); # ifdef HAVE_ID_IN_UTMPX line_abbrevname(utx->ut_id, li->line, sizeof(utx->ut_id)); @@ -725,6 +744,19 @@ if (li->hostaddr.sa.sa_family == AF_INET) utx->ut_addr =...
2001 Jan 29
1
Solaris wtmpx patch
...user, NULL, ttyname); login_logout(li); login_free_entry(li); } diff -u -r openssh-2.3.0p1.orig/loginrec.c openssh-2.3.0p1/loginrec.c --- openssh-2.3.0p1.orig/loginrec.c Sat Sep 30 03:34:44 2000 +++ openssh-2.3.0p1/loginrec.c Tue Jan 23 18:24:25 2001 @@ -674,6 +674,9 @@ set_utmpx_time(li, utx); utx->ut_pid = li->pid; + /* strncpy(): Don't necessarily want null termination */ + strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); + if (li->type == LTYPE_LOGOUT) return; @@ -682,8 +685,6 @@ * for logouts. */ - /* strncpy(...
2014 Feb 24
1
loginrec.c: bug in construct_utmpx() definition?
...tifier is reported only once for each function it appears in My uClibc config includes support for UTMPX. Looking in openssh/loginrec.c at the mentioned line I see that 'ut' structure pointer name is used when HAVE_ADDR_V6_IN_UTMP is defined while in in the rest of the function only 'utx' is used. For my inexperienced coding skills this looks like a bug, wrong variable name 'ut' is used over 'utx'. Changing that code to use 'utx' instead of of 'ut' will lead to a successful compilation of the whole SSH package. I checked and that chunk of code is...
2000 Jul 02
0
patch for NetBSD utmp (ut_name instead of ut_host)
...lif defined(HAVE_NAME_IN_UTMP) + if (strncmp(li->username, ut->ut_name, + MIN_SIZEOF(li->username, ut->ut_name)) == 0) +# else +# error no ut_user nor ut_name +# endif + { # ifdef HAVE_TYPE_IN_UTMP @@ -1163,4 +1177,12 @@ { +# ifdef HAVE_USER_IN_UTMP if ( strncmp(li->username, utx->ut_user, - MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) { + MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) +# elif defined(HAVE_NAME_IN_UTMP) + if ( strncmp(li->username, utx->ut_name, + MIN_SIZEOF(li->username, utx->ut_name)) == 0 ) +# else +# error no ut_user nor...
2000 Jun 13
2
Openssh-2.1.1p1 and solaris 7/8
Hello, I just installed the above openssh onto a Sun Solaris 7 and Solaris 8 system. No problem with that. However, I now seem to get some rubbish processed when I login with slogin. An example: Last login: Tue Jun 13 12:31:27 2000 from jhorne.csd.plymo:tJ` ^[[?1;2c Telnet logs in okay, but just shows 'Last login...jhorne.csd.plymo'. This seems to get passed to the shell, which it of
2000 Jul 04
0
AW: FreeBSD 3.5-STABLE
...>username, ut->ut_name, + MIN_SIZEOF(li->username, ut->ut_name)) == 0) { # ifdef HAVE_TYPE_IN_UTMP if (ut->ut_type & USER_PROCESS) return 1; @@ -1161,7 +1161,7 @@ static int wtmpx_islogin(struct logininfo *li, struct utmpx *utx) { - if ( strncmp(li->username, utx->ut_user, + if ( strncmp(li->username, utx->ut_name, MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) { # ifdef HAVE_TYPE_IN_UTMPX if (utx->ut_type == USER_PROCESS) And here's a startup script...
2000 May 26
4
openssh-2.1.0p2 ans Solaris 8
I have some troubles with subj and proper utmpx/wtmpx functionality. After successfull ssh connect to Solaris 8 box, I run #w 11:59am up 13:45, 1 user, load average: 0.00, 0.01, 0.02 User tty login@ idle JCPU PCPU what root console 11:43am 9 bash # Record about my pts/1 login is absent. Next command I run from Solaris 8 console
2000 May 31
3
Solaris utmp problems
Could all those who were having problems with utmp logging on Solaris please try the test release at: http://violet.ibs.com.au/openssh/files/test/openssh-TEST-2000053100.tar.gz Users on other platforms, particularly HP/UX, AIX and SCO are invited as well, to test compatibility. The login code is heaps cleaner now. -d -- | "Bombay is 250ms from New York in the new world order" -
2019 Oct 22
6
CentOS 8: what changed (regular UNIX admin commands)?
...e one needs to do after successful installation. (in the past it was process accounting that was not enabled by default, but which gives you quite some handle in investigating compromise). I just tried quite ordinaly command of freshly installed CentOS 8: last and got an error: last: (default utx db): No such file or directory I realize that it could be just me, and I'll cope with that myself one way or another but this one prompted me to ask everybody: Is there anything I can read so I can learn what differenmt to expect on CentOS 8 from, say, CentOS 7? Thanks. Valeri +++++++++++...
2007 Jan 15
0
utmp ut_syslen bug?
loginrec.c:794 /* ut_syslen is the length of the utx_host string */ utx->ut_syslen = MIN(strlen(li->hostname), sizeof(utx->ut_host)); But utmpx.h (on Solaris) says: short ut_syslen; /* significant length of ut_host */ /* including terminating null */ So shouldn't...
2002 Jul 18
2
[Bug 345] w (uptime) command still indicates user is logged in after logout
http://bugzilla.mindrot.org/show_bug.cgi?id=345 stevesk at pobox.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Lutz.Jaenicke at aet.TU- | |Cottbus.DE ------- Additional Comments From stevesk at
2019 Oct 22
5
CentOS 8: what changed (regular UNIX admin commands)?
...ing that was not enabled by default, but which > > gives you quite some handle in investigating compromise). > > > > I just tried quite ordinaly command of freshly installed CentOS 8: > > > > last > > > > and got an error: > > > > last: (default utx db): No such file or directory > > > > I realize that it could be just me, and I'll cope with that myself one > > way or another but this one prompted me to ask everybody: Is there > > anything I can read so I can learn what differenmt to expect on CentOS > > 8 fro...
2016 Jan 19
2
OpenSSH portability & buildsystem fixes
...e commented out too. * utimes in openbsd-compat has char * for the path parameter but that's supposed to be const char *. * loginrec.c in utmpx_perform_login does a call to utmpx_write_direct with a parameter named ut, but such a variable does not exist, that was probably supposed to be utx. Though that code isn't implemented so not that important. * DESTDIR is not inherited from the environment in the makefiles, but instead assigned to the empty string. autoconf packages typically inherit it from the environment. This is easily fixed by adding DESTDIR?= instead, or si...