Displaying 13 results from an estimated 13 matches for "ttyslot".
Did you mean:
keyslot
2000 Mar 30
0
ttyslot(), forking and NeXT.
I'm surprise this is right on any machine. But I'll check my Suse 6.3
box here in a few hours.
In bsd-login.c if you go down to the 'tty = ttyslot();' and
insert a debug("LOGIN: ttyslot = %d",tty); then run the server
in debug mode and log with a client. You'll see the ttyslot your
using in the utmp file.
Now.. The kicker.
I can log into my NeXT box and I get assigned one ttyslot() number for
my session (which I assume i...
2000 Jul 26
2
[2.1.1p4] utmp related patches plus unresolved bugs description
...l.), configure
can define their location in CONF_*, but defines.h never used
these.
-- Might as well put in the usual location for SunOS4.
-- In loginrec.c (utmp_write_direct), writing to the utmp file
was not done correctly.
Remaining:
-- At logout, the utmp entry cannot be cleared since ttyslot
cannot find the offset for the terminal since it is the parent
process that calls this stuff and it does not execute in the
context of the terminal. It works at login since it is then
done by the child process (the one that will eventually exec
the user shell). The solution involves having t...
2000 Aug 01
2
[2.1.1p4] utmp patch for SunOS 4.1.x
...dif
+ #ifdef HAVE_TTYENT_H
+ # include <ttyent.h>
+ #endif
#ifdef USE_PAM
# include <security/pam_appl.h>
#endif
*** loginrec.c.orig Mon Jul 10 19:15:54 2000
--- loginrec.c Mon Jul 31 10:37:45 2000
***************
*** 723,730 ****
--- 723,751 ----
int tty;
/* FIXME: (ATL) ttyslot() needs local implementation */
+
+ #if defined(SUNOS4) && defined(HAVE_GETTTYENT)
+
+ register struct ttyent *ty;
+ tty=0;
+ setttyent();
+ while ((struct ttyent *)0 != (ty = getttyent())) {
+ tty++;
+ if(0 == strncmp(ty->ty_name,u...
1999 Dec 20
2
Portability hacks + alpha HPUX1020 port
...X
- macro to use setreuid() instead of seteuid(), which HP lacks ***
Someone shout if this has any security implications ! ***
- autoconf config.sub and config.guess (AC_CANONICAL_HOST) added
- various compiler warnings squashed. I hate warnings. Grr.
TODO:
- HP utmp/utmpx support is still broken, ttyslot() seems to return
garbage for ptys... anyone? :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssh-1.2.1pre18-hpux1020-a4.patch.gz
Type: application/x-gzip
Size: 29217 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/atta...
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
1999 Nov 19
0
[patch2, 1.2pre13] solaris 7 patch for bsd-login.c
...ude <sys/types.h>
#include <fcntl.h>
***************
*** 48,53 ****
--- 49,56 ----
#include <utmp.h>
#include <stdio.h>
+ #include "config.h"
+
void
login(utp)
struct utmp *utp;
***************
*** 58,63 ****
--- 61,67 ----
tty = ttyslot();
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) {
+ #ifdef HAVE_HOST_IN_UTMP
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
/*
* Prevent luser from zero'ing out ut_host.
***************...
1999 Dec 09
1
bsd-login.c in pre17
...warning about
strncmp in login.
enjoy,
-dagraz
--- bsd-login.c.orig Thu Dec 9 14:52:27 1999
+++ bsd-login.c Thu Dec 9 14:58:42 1999
@@ -52,6 +52,7 @@
# include <utmp.h>
#endif
#include <stdio.h>
+#include <string.h>
void
login(utp)
@@ -78,7 +79,7 @@
tty = ttyslot();
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644))
>= 0) {
-#ifdef HAVE_HOST_IN_UTMP || HAVE_HOST_IN_UTMPX
+#if defined(HAVE_HOST_IN_UTMP) || defined(HAVE_HOST_IN_UTMPX)
(void)lseek(fd, (off_t)(tty * sizeof(struct
UTMP_STR)), SEEK_SET);...
2000 Apr 21
0
OpenSSH 1.2.3 on AIX 4.3.3
...tty;
+#endif /* HAVE_PUTUTLINE */
#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
struct utmpx *old_utx;
#endif /* defined(HAVE_UTMPX_H) && defined(USE_UTMPX) */
register int fd;
- int tty;
+#if defined(HAVE_PUTUTLINE)
+ old_utp = pututline(utp);
+ endutent();
+#else
tty = ttyslot();
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) {
@@ -100,6 +108,7 @@
(void)write(fd, utp, sizeof(struct utmp));
(void)close(fd);
}
+#endif /* HAVE_PUTUTLINE */
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
(void)write(fd, utp, siz...
2000 May 12
0
SunOS 4.x port
...5 12:30:48 2000
@@ -60,6 +60,7 @@
#include <stdio.h>
#include <string.h>
+#ifdef USER_PROCESS
/*
* find first matching slot in utmp, or "-1" for none
*
@@ -93,6 +94,13 @@
endutent();
return(-1);
}
+#else
+int find_tty_slot( utp )
+struct utmp * utp;
+{
+ return(ttyslot());
+}
+#endif
#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
void
@@ -127,13 +135,16 @@
} else {
/* If no tty was found... */
if (tty == -1) {
+#ifdef USER_PROCESS
/* ... append it to utmp on login */
if (utp->ut_type == USER_PROCESS) {
if ((fd = open(_PATH_UTM...
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...qnx/loginrec.c
*** openssh-2.2.0p1.orig/loginrec.c Tue Aug 29 05:30:37 2000
--- openssh-2.2.0p1.qnx/loginrec.c Tue Sep 12 09:26:36 2000
***************
*** 744,755 ****
--- 744,760 ----
}
#else /* FIXME */
+ #if defined(__QNX__) && !defined(__QNXNTO__)
+ tty = 1;
+ #else
tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
+ #endif /* __QNX__ && !__QNXNTO__ */
#endif /* HAVE_GETTTYENT */
if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
+ #ifde...
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
2000 Aug 23
14
Test snapshot
I have just tarred up a snapshot and uploaded it to:
http://www.mindrot.org/misc/openssh/openssh-SNAP-20000823.tar.gz
The snapshot incorporates the last month's fixes and enhancements from
the openssh-unix-dev mailing list and from the OpenBSD developers.
In particular:
- ssh-agent and ssh-add now handle DSA keys. NB. this does not interop
with ssh.com's ssh-agent. (Markus Friedl)