Package: ttysnoop / 0.12d-5

Metadata

Package Version Patches format
ttysnoop 0.12d-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01_from_package_0_12d_1.diff | (download)

Makefile | 13 8 + 5 - 0 !
logwtmp.c | 63 63 + 0 - 0 !
logwtmp.h | 1 1 + 0 - 0 !
snooptab.dist | 30 20 + 10 - 0 !
ttysnoops.c | 7 5 + 2 - 0 !
5 files changed, 97 insertions(+), 17 deletions(-)

 debian specific patches to ttysnoop-0.12d.
02_unix98_pty.diff | (download)

ttysnoops.c | 75 63 + 12 - 0 !
1 file changed, 63 insertions(+), 12 deletions(-)

 implement support for unix98 pty's.
03_address_length.diff | (download)

ttysnoops.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 properly initialize address length in accept socket.
10_compiler_warnings.diff | (download)

common.c | 4 4 + 0 - 0 !
logwtmp.c | 4 3 + 1 - 0 !
ttysnoop.c | 1 1 + 0 - 0 !
ttysnoops.c | 16 12 + 4 - 0 !
4 files changed, 20 insertions(+), 5 deletions(-)

 cleaning of compiler warnings and minor observations.
 A handful missing prototypes need suitable header files.
 .
 Neglected va_end().
 .
 Missing return values.
 .
12_tailor_makefile.diff | (download)

Makefile | 4 2 + 2 - 0 !
common.h | 2 1 + 1 - 0 !
ttysnoop.8 | 10 6 + 4 - 0 !
3 files changed, 9 insertions(+), 7 deletions(-)

 minor changes to improve on previous adaptions.
 Correct a mistaken target dependency.
 .
 Let additional compiler flags influence the build process.
 .
 Minor errors in the manual page.
 .
 A compiler attribute.
13_predictable_client.diff | (download)

ttysnoop.c | 60 46 + 14 - 0 !
1 file changed, 46 insertions(+), 14 deletions(-)

 predictable behaviour of client program.
 Better error recovery and exeption handling.
 .
 Ignore the SIGPIPE trigger.
 .
 Give priority to reading the device being snooped at,
 only then reading from standard input.
14_predictable_server.diff | (download)

ttysnoops.c | 32 28 + 4 - 0 !
1 file changed, 28 insertions(+), 4 deletions(-)

 predictable behaviour of server.
 Deny executaion without sufficient priviliges.
 .
 Closing of sockets as the client user is leaving. This sets an
 otherwise blocking connection free again, ready to receive new
 login attempts.
 .
 Removal of the extinct UNIX socket from '/var/spool/ttysnoop/'
 .
 Minor health checks.
15_socket_name_length.diff | (download)

ttysnoop.c | 6 4 + 2 - 0 !
ttysnoops.c | 6 4 + 2 - 0 !
2 files changed, 8 insertions(+), 4 deletions(-)

 better protection of unix socket names.
 Ensure that a NUL character is always present in the socket name.
 Use SUN_LEN to calculate name lengths for optimal portability.
16_corrupt_utmp_for_pts.diff | (download)

ttysnoops.c | 9 6 + 3 - 0 !
1 file changed, 6 insertions(+), 3 deletions(-)

 use distinct utmp identity.
 The original code implemented an incorrect
 abbreviation of pseudo terminal names in the
 PTY name space. This corrupts the UTMP_FILE
 of GNU/Linux systems.
17_portability_and_qa.diff | (download)

Makefile | 23 18 + 5 - 0 !
logwtmp.c | 5 4 + 1 - 0 !
ttysnoops.c | 17 11 + 6 - 0 !
3 files changed, 33 insertions(+), 12 deletions(-)

 improve portability to achieve better qa
 Relax as far as possible any coding that disturbs
 building in other unices. Target GNU/OpenSolaris as
 a first step.
 .
 Legacy coding for UTMP remains at the time being.
 .
 It is hoped that the measures undertaken is this
 patch set will improve the quality of this software,
 by successively identifying the corner cases.