search for: pututline_my

Displaying 2 results from an estimated 2 matches for "pututline_my".

2005 Mar 30
1
utmp update for bsd systems
...p.c Wed Mar 30 15:51:40 2005 @@ -261,6 +261,7 @@ } #ifndef HAVE_PUTUTLINE +#include <ttyent.h> /**************************************************************************** Update utmp file directly. No subroutine interface: probably a BSD system. @@ -268,8 +269,50 @@ static void pututline_my(pstring uname, struct utmp *u, BOOL claim) { - DEBUG(1,("pututline_my: not yet implemented\n")); - /* BSD implementor: may want to consider (or not) adjusting "lastlog" */ + int fd, topslot; + struct utmp ubuf; + + if ((fd = open(uname, O_RDWR, 0)) < 0) + return; + + if (!s...
2005 Apr 14
1
utmp update for bsd systems (try 2)
...p.c Wed Mar 30 15:51:40 2005 @@ -261,6 +261,7 @@ } #ifndef HAVE_PUTUTLINE +#include <ttyent.h> /**************************************************************************** Update utmp file directly. No subroutine interface: probably a BSD system. @@ -268,8 +269,50 @@ static void pututline_my(pstring uname, struct utmp *u, BOOL claim) { - DEBUG(1,("pututline_my: not yet implemented\n")); - /* BSD implementor: may want to consider (or not) adjusting "lastlog" */ + int fd, topslot; + struct utmp ubuf; + + if ((fd = open(uname, O_RDWR, 0)) < 0) + return; + + if (!s...