History log of /src/usr.bin/who/utmpentry.c |
Revision | | Date | Author | Comments |
1.22 |
| 26-Feb-2021 |
christos | PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.
|
1.21 |
| 05-Oct-2019 |
mrg | use memcpy() for strings that are not C strings. destinations are already sufficiently sized and nul terminated.
|
1.20 |
| 04-Oct-2019 |
mrg | revert previous; i meant to test first and if you read the comment immediately above, you can see it is done safely and on purpose.
|
1.19 |
| 04-Oct-2019 |
mrg | use destination buffer size not source buffer size for strncpy len.
|
1.18 |
| 21-Nov-2015 |
christos | branches: 1.18.8; 1.18.16; 1.18.18; WARNS=6
|
1.17 |
| 01-May-2009 |
christos | PR/41313: Chris Spiegel: getutentries() in src/usr.bin/who/utmpentry.c thinks there are no entries if only one of utmp/utmpx support is selected mangled && -> ||
|
1.16 |
| 28-Oct-2008 |
christos | branches: 1.16.4; pass lint.
|
1.15 |
| 13-Jul-2008 |
dholland | Clarify how one is supposed to use the pointers returned by getutentries() (the utmpentry.c code), specifically with respect to who owns them and when to free them. Now they're owned by utmpentry.c, only. Abolish the freeutentries() function, which was the wrong abstraction; add instead endutentries(), which flushes out the internally managed memory.
Update callers as necessary. Some (e.g. talkd) had been leaking memory; others (e.g. syslogd) had been accidentally freeing and reloading utmp more often than necessary. There are a couple untidy bits in users and rwhod that someone should look after sometime, maybe.
Fixes PR bin/35131, which was about talkd's memory leak.
|
1.14 |
| 28-Apr-2008 |
martin | branches: 1.14.2; Remove clause 3 and 4 from TNF licenses
|
1.13 |
| 08-Mar-2008 |
dholland | branches: 1.13.2; Amplify comments from the previous commit. If xtos misread what was going on, they can't have been clear enough. (And if xtos misread it, so will anyone else passing by, and then someone will "fix" it...)
Hopefully this will help. Maybe it should be changed to use memcpy instead of strncpy after all.
|
1.12 |
| 08-Mar-2008 |
dholland | Remove reflexive cargo-cult-style null-termination after strncpy; it is neither needed nor particularly desirable. Add comments to explain what's going on, and arrange to fail the build if the sizes of things get out of whack. Resolves PR bin/38201 from Chris Spiegel.
|
1.11 |
| 27-Nov-2006 |
christos | branches: 1.11.8; 1.11.14; PR/35135: David A. Holland: timespec patches for utmpentry.c
|
1.10 |
| 20-Sep-2006 |
christos | set utmp entry types to user process.
|
1.9 |
| 19-Sep-2006 |
christos | Add support for the majority of the rest of the system V options, although we don't support some of them. We might add boottime, system clock change time, in the future, so add the code to do it.
|
1.8 |
| 19-Sep-2006 |
hubertf | Change -u behaviour to also print PID of process on terminal, and add -d to print more information from utmpx.
OK'd by christos@
|
1.7 |
| 17-Mar-2006 |
elad | Another overrun forgotten in previous commit, also found by Coverity. CID 1481.
|
1.6 |
| 17-Mar-2006 |
elad | Fix buffer overrun found by Coverity, CID 1482.
|
1.5 |
| 22-Oct-2004 |
christos | Check the result of stat and warn if things are not found. Change all err/x to warn/x
|
1.4 |
| 12-Feb-2003 |
christos | PR/20317: Johnny Billquist: Clear timestamps upon freeing entries.
|
1.3 |
| 01-Aug-2002 |
christos | make this compile with either utmp or utmpx there.
|
1.2 |
| 01-Aug-2002 |
christos | - don't hide a global.
|
1.1 |
| 01-Aug-2002 |
christos | abstract out utmp loading.
|
1.11.14.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.11.8.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.13.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.14.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.16.4.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.18.18.1 |
| 18-Apr-2024 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1833):
usr.bin/who/utmpentry.c: revision 1.22
PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.
|
1.18.16.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.18.8.1 |
| 18-Apr-2024 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1958):
usr.bin/who/utmpentry.c: revision 1.22
PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.
|