History log of /src/lib/libc/gen/utmpx.c |
Revision | | Date | Author | Comments |
1.35 |
| 23-May-2015 |
christos | use VIS_NOLOCALE
|
1.34 |
| 23-May-2015 |
mlelstv | strvisx is used here to encode binary data, but the encoding depends on locale settings and the result might not be accepted or even misinterpreted by the strunvis decoder. As a workaround encode manually as a string of octal numbers.
strvisx should learn how enforce such an encoding by itself.
|
1.33 |
| 05-Feb-2015 |
christos | fix incorrect type
|
1.32 |
| 18-Sep-2014 |
christos | make more descriptors that we open as close-on-exec
|
1.31 |
| 05-Sep-2013 |
pooka | Avoid strict-alias problem flagged by certain compilers (e.g. Centos one): libc/gen/utmpx.c:89: error: dereferencing pointer 'otv' does break strict-aliasing rules
reviewed by Christos (thanks!)
|
1.30 |
| 24-Jun-2012 |
christos | branches: 1.30.2; fix old style definitions; XXX: gcc should have picked them up but it did not.
|
1.29 |
| 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.28 |
| 15-Oct-2011 |
christos | branches: 1.28.2; close on exec fixes: - open + fcntl -> open O_CLOEXEC - configuration database file descriptors that can stay open are now opened fopen(db, "re")
|
1.27 |
| 17-Sep-2011 |
christos | Never invoke utmp_update() recursively if we are root. Instead close the read-only file so it can be opened later. It can happen when a setuid program utmp_update, seteuid(ruid) -> getutxent() -> seteuid(0) -> pututxent()
|
1.26 |
| 11-Jan-2009 |
christos | merge christos-time_t
|
1.25 |
| 28-Apr-2008 |
martin | branches: 1.25.8; Remove clause 3 and 4 from TNF licenses
|
1.24 |
| 26-Nov-2006 |
christos | branches: 1.24.16; PR/35129: David A. Holland: exit in utmpx code should be _exit
|
1.23 |
| 13-Sep-2005 |
christos | compat core reorg.
|
1.22 |
| 11-Nov-2004 |
christos | Don't create the lastlogx file with 0 mode.
|
1.21 |
| 06-Sep-2003 |
wiz | Add __warn_references for deprecated lastlogxname. Okayed by christos.
|
1.20 |
| 26-Aug-2003 |
wiz | Make getlastlogx have the pathname to the lastlogx database as first argument, to be consistent with updlastlogx.
Approved by christos, reviewed by kleink.
[The lastlogxname function should not be used any longer.]
|
1.19 |
| 25-Aug-2003 |
matt | When updating wtmpx, if the write fails make sure to close the file (to release the lock held on it). Use O_SHLOCK when adding just one record since O_APPEND will enforce the atomicity that is required.
|
1.18 |
| 24-Aug-2003 |
kleink | Need namespace.h to generate references to internal names.
|
1.17 |
| 26-Feb-2003 |
christos | keep track if we have the file opened as readonly or readwrite, so that we don't need to call update_utmp, if our euid has changed, but we still have a write reference to the file. Solves problem with chrooting processes.
|
1.16 |
| 26-Nov-2002 |
christos | lib/19176: Onno van der Linden: execl is called with too few arguments.
|
1.15 |
| 17-Nov-2002 |
itojun | make sure to bound string operation by strlcpy (there are bunch of "strcpy is safe" comments, i think we should change them to strlcpy as much as possible)
|
1.14 |
| 25-Oct-2002 |
wiz | Add some _DIAGASSERTS(). Ok'd by christos.
|
1.13 |
| 28-Sep-2002 |
christos | fix typo
|
1.12 |
| 28-Sep-2002 |
christos | check for write and close errors, from wiz
|
1.11 |
| 26-Sep-2002 |
wiz | Move comment that says 'the following are extensions' to the right place. Approved by christos.
|
1.10 |
| 28-Jul-2002 |
christos | use the fname we passed in.
|
1.9 |
| 27-Jul-2002 |
christos | add lastlogx implementation.
|
1.8 |
| 27-Jul-2002 |
christos | reset fp when we are done with it.
|
1.7 |
| 23-Jul-2002 |
simonb | Sprinkle some KNF.
|
1.6 |
| 15-Apr-2002 |
christos | - open for r+, then w+, then r. - fix fread and fwrite error checking.
|
1.5 |
| 04-Apr-2002 |
christos | add two more gnu-like functions.
|
1.4 |
| 11-Mar-2002 |
simonb | Include <stdlib.h> for exit() prototype.
|
1.3 |
| 05-Mar-2002 |
christos | branches: 1.3.2; add updwtmpx(); requested by tron.
|
1.2 |
| 25-Feb-2002 |
christos | catch up with ut_name->ut_user change
|
1.1 |
| 22-Feb-2002 |
christos | A simple utmpx implementation. Nothing uses it yet. TODO: write the lastlog*() stuff.
|
1.3.2.8 |
| 10-Dec-2002 |
thorpej | Sync with HEAD.
|
1.3.2.7 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.3.2.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.3.2.5 |
| 02-Aug-2002 |
thorpej | Add missing <stdlib.h> -- must have been a merge botch.
|
1.3.2.4 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.3.2.3 |
| 25-Apr-2002 |
nathanw | Catch up to -current.
|
1.3.2.2 |
| 08-Mar-2002 |
nathanw | Catch up to -current.
|
1.3.2.1 |
| 05-Mar-2002 |
nathanw | file utmpx.c was added on branch nathanw_sa on 2002-03-08 21:35:20 +0000
|
1.24.16.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.25.8.4 |
| 23-Nov-2008 |
christos | remove debugging printf.
|
1.25.8.3 |
| 23-Nov-2008 |
christos | fix utmp{,x} issues: - add old utmp format support. Ugly and difficult to get right. For now try to deal by detecting the size of the file and seeing if it is a multiple of sizeof(struct utmp50). - fix NULL pointer in cvt. - version the UTMPX database, and detect if we have an old or new one and act accordingly.
|
1.25.8.2 |
| 08-Nov-2008 |
christos | time_t changes
|
1.25.8.1 |
| 28-Apr-2008 |
christos | file utmpx.c was added on branch christos-time_t on 2008-11-08 21:45:38 +0000
|
1.28.2.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.28.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.28.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.30.2.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|