| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
- Only set the fields in the ulog_utmpx structure that are valid for the
command in question. This means that strings like "shutdown" or "~"
are not visible to the user anymore.
- Rename UTXF_* to UTXI_*, indicating the indexation, instead of using
the `antique' filename. If we ever get rid of utmp, it makes little
sense calling it by its old name.
|
|
|
|
| |
Submitted by: b. f. <bf1783 googlemail com>
|
|
|
|
|
| |
Right now the code uses UT_NAMESIZE, but this makes little sense,
because rwho(1) parses files generated by rwhod(8). Not utmp(5) files.
|
|
|
|
|
|
| |
commands.
MFC after: 1 month
|
| |
|
|
|
|
|
| |
PR: bin/141280
Approved by: des, trasz (mentor)
|
|
|
|
|
|
| |
PR: bin/141836
Submitted by: Henning Petersen <henning.petersen at t-online.de>
MFC after: 2 weeks
|
|
|
|
|
| |
OK'ed by: delphij
Approved by: trasz (mentor)
|
|
|
|
|
|
|
|
|
| |
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().
PR: bin/120870
Approved by: trasz (mentor)
|
|
|
|
|
| |
Submitted by: infofarmer@
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
| |
processes by setting the FD_CLOEXEC flag for the output file.
PR: bin/140493
Submitted by: Erik Lax
OK'ed by: delphij
Approved by: trasz (mentor)
|
|
|
|
|
|
|
|
| |
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.
OK'ed by: delphij
Approved by: trasz (mentor)
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
- Prevent overflowing of the buffer length variable in getline() by
limiting its maximum value.
- Exit if reallocf(3) fails in getline(). Failure was silently
considered as end-of-file.
Reviewed by: ghelmer
Approved by: trasz (mentor)
|
|
|
|
|
|
| |
r176119.
Approved by: trasz (mentor)
|
|
|
|
|
| |
that appears to be actually used. Without config.h included
cross-build of world failed (at least for ARM).
|
| |
|
|
|
|
| |
#ifdef and not just #if -- both to be semantically correct and also to be aligned with the rest of the 'calendar' sources
|
|
|
|
| |
'myname'
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
limiting its maximum value.
- Exit if reallocf(3) fails in getline(). Failure was silently
considered as end-of-file.
Reviewed by: ghelmer
Approved by: trasz (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Sort function prototypes;
- Apply static on all function bodies. To quote bde@:
> It is a good obfuscation to declare functions as static only in the
> prototype, so that you can't see the static for the actual function.
> The reverse obfuscation (with static only in the function definition)
> would make more sense, but is a constraint error.
Reviewed by: bde
|
|
|
|
|
|
| |
all.
- Remove pathnames.h from all but io.c since it's the only module that
used these definations.
|
|
|
|
|
|
| |
symbol from other module, so remove reference of stdlib.h and extern.h.
Verified with: md5(1)
|
| |
|
|
|
|
|
|
|
| |
necessary here.
Note: this would change the md5 checksum due to change caused
by different register layout.
|
| |
|
| |
|
|
|
|
| |
needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to wcscoll(3). Newline characters could cause incorrect results when
comparing lines.
Also, if an input line didn't contain a newline character, it was
omitted from the output. According to my interpretation, SUSv3 requires
that the newline is always printed.
Add regression tests for the cases. [1]
PR: bin/140976
Submitted by: D'Arcy Cain (original version) [1]
Approved by: trasz (mentor)
|
|
|
|
|
|
| |
r179374.
Approved by: trasz (mentor)
|
|
|
|
| |
Tested with: make universe
|
|
|
|
|
| |
unneeded headers. While I'm there, make function definations ANSI
prototypes.
|
|
|
|
| |
includes.
|
|
|
|
| |
Reviewed by: rodrigc
|
|
|
|
| |
Approved by: ed (mentor)
|
|
|
|
|
|
|
|
|
|
| |
We don't have UT_*SIZE anymore. One of the reasons for that is because
all strings are null terminated, there is no need for apps to copy
strings out of the utmpx structure. This means we can define W_DISP*SIZE
lengths for all columns.
While there, adjust the sizes a little. Steal some bytes from the
username column, while extending the hostname column quite a bit.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(Un)fortunately there is no standardized interface to switch between
utmp database files, so we must call ulog_setutxfile() here.
I'm also changing the column widths to magic numbers here. Display
layout should in this case not be derived from structure fields sizes.
Because I don't want struct utmpx ever to become too small, the fields
are too big to reserve all the space.
|
|
|
|
|
|
|
|
| |
Because our implementation guarantees the strings inside struct utmpx to
be null terminated, we don't need to copy everything out, which makes
the code nicer to read.
Also set WARNS to 6 and add $FreeBSD$ to keep SVN happy.
|
|
|
|
|
|
|
|
| |
Because our implementation guarantees the strings inside struct utmpx to
be null terminated, we don't need to copy everything out, which makes
the code nicer to read.
Also set WARNS to 6 and add $FreeBSD$ to keep SVN silent.
|
| |
|
|
|
|
|
| |
By the time we gain a real <utmpx.h>, it's just a matter of changing the
include at the top and -lulog from the Makefile.
|
| |
|
|
|
|
|
|
| |
Approved by: ed (mentor)
Approved by: des (unzip author)
Tested by: exp ports build (miwi)
|
|
|
|
|
|
| |
POSIX isn't clear about how the fields should be used, but according to
utmpx(5) on Linux, LOGIN_PROCESS refers to a TTY that's still running a
getty.
|
|
|
|
|
|
| |
Instead of digging through the utmp database by hand, use proper API
calls to do so. Instead of parsing entries with a non-empty ut_user, we
now look at LOGIN_PROCESS entries.
|
| |
|
|
|
|
| |
Tested by: glebius
|
|
|
|
|
|
|
| |
Try to version the struct in a backward compatible way.
People asked for the versioning of the stats structs in general before.
MFC after: 5 days
|