| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
based on whether fd 0 is a terminal, and then runs (extract|update)
based on whether ${PORTSDIR} exists.
Requested by: alfred
MFC after: 1 month
|
|
|
|
|
|
|
| |
I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.
|
| |
|
|
|
|
| |
Submitted by: rwatson
|
| |
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
| |
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.
PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
| |
- Cast delimiter width to integer [1]
- Solve name conflicts against system header
- Constify parameters to avoid qualifier conflict
PR: bin/140017 [1]
Submitted by: Ulrich Spörlein <uqs spoerlein net> [1]
MFC after: 1 month
Sponsored by: iXsystems, Inc
|
| |
|
|
|
|
| |
Submitted by: ed
|
|
|
|
| |
Submitted by: ed
|
|
|
|
|
|
|
|
|
|
|
|
| |
I am not planning on providing a mechanism tot stat() the database files
directly. The disadvantage of this, is that rwhod will now be a little
bit more heavy than it used to be. It normally used to fstat() the file
descriptor to see whether the file had changed, but this is now
impossible to implement, meaning we have to parse the entire utmp file
each 180 seconds.
This is probably not an issue on modern 16-way servers, but if it turns
out to be a problem, we'll think of something.
|
|
|
|
|
|
| |
are eaten by shell. Fix this.
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
|
|
| |
The utmp code in systime.c is not enabled, so including <utmp.h> has no
effect in our setup. This makes it a little easier for me to migrate to
<utmpx.h>.
Approved by: roberto
|
|
|
|
|
|
|
| |
as an argument.
Submitted by: Marc Balmer <marc@msys.ch>
MFC after: 3 days
|
| |
|
|
|
|
| |
make file systems optimally aligned and tuned for better performance.
|
|
|
|
|
| |
Because strings are guaranteed to be null terminated, there is no need
for excessive copying of strings, such as the line name.
|
|
|
|
| |
Approved by: harti
|
|
|
|
| |
(Fixes "zzz" clash in the whatis(1) database.)
|
|
|
|
|
|
|
|
|
|
| |
zic:
- Fix URL / reference to Calendrical Calculations: Third Edition
libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)
MFC after: 1 week
|
|
|
|
|
|
| |
PR: docs/133186
Approved by: ed (mentor)
MFC after: 2 weeks
|
|
|
|
|
|
| |
as they are at boot time.
Original concept submitted by: ume
|
|
|
|
|
|
|
|
|
| |
to proceed anyway as this most likely mean that the process has been
terminated.
PR: bin/140397
Submitted by: Dan Lukes <dan obluda cz>
MFC after: 1 month
|
|
|
|
|
|
|
|
| |
recodring speed.
PR: bin/140530
Submitted by: Alexander Best <alexbestms wwu.de>
MFC after: 1 month
|
|
|
|
| |
within watchdogd(8) fails. This is also consistent with watchdog(8).
|
|
|
|
|
|
| |
Its primary purpose is to start and stop services provided by
the rc.d scripts, however it can also be used to list the scripts
using various criteria.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and /.profile. The problem is that install(1) will unlink the old file
before it installs the new one, which means that in the best case we
have to compare the changes for the old file twice.
So, change the logic to first test to see if the link exists, then
install the file. Then if the link was there and we're using -i, just
create the link in /root and be done with it. Otherwise display the
message to the user and give them the option.
Because we are now sorting things before doing the comparison we can
know conclusively that the files in / should be the sources, and the
files in /root will be the targets, so adjust the paths accordingly.
While I'm here, split a too-long error message into two lines and
just return at the end of handling these files instead of setting
the variable that says "do nothing" and then returning at the end
of the function anyway.
|
| |
|
|
|
|
|
| |
first pipe it to sort so that order of processing will be deterministic
and like things will be grouped together.
|
|
|
|
| |
Security: CVE-2009-3563
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when "-P port" is specified. It invoked svc{tcp,udp}_create()
for only one of the two allocated sockets, and prevented the
TCP socket from binding to as the result.
- Use TI-RPC functions and handle sockets in a
transport-independent way. At this moment only AF_INET ("udp"
and "tcp") is supported because others need rewrites of ACL
handling and yp clients.
- Add '-h addr' to specify addresses to bind to.
- Convert _msgout() to use variable argument lists and remove
asprintf() for error strings.
- Remove register storage class specifier.
Discussed with: kuriyama
MFC after: 1 week
|
|
|
|
| |
there, so remove this dummy header.
|
|
|
|
|
|
|
| |
expects them to be there for the next jail in the list.
PR: bin/141359
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to something else. So add code to detect when things don't match and
give the user choices about how to fix it.
If we're using -P and something in the above check needs to be moved
we need to have the directory there for it, so create it at the
beginning and delete empty versions of it at the end.
The case where something used to be a file or link and now is supposed
to be a directory (e.g., /etc/security) is especially dangerous, so
make failure to install a necessary directory in $DESTDIR a fatal error.
|
|
|
|
|
| |
Make the message about a missing MTREEFILE combined with -U
more informative
|
|
|
|
|
| |
Just use ulog_getutxuser() to obtain lastlog records or ulog_getutxent()
to browse through all of them.
|
|
|
|
|
| |
Looking at the other entries, I suspect we must also reserve one
terminating byte, so I'm using UNAME_FIELD_LEN - 1, not UNAME_FIELD_LEN.
|
|
|
|
|
|
| |
MAXLOGNAME seems more applicable in this case, because UT_NAMESIZE
refers to the username field in utmp files, which is clearly unrelated
to repquota(8).
|
|
|
|
|
|
| |
The size of the username record in utmp files should not influence the
maximum username length. Right now ut_user/ut_name is big enough, so in
this case it's dead code anyway.
|
|
|
|
|
|
|
| |
refreshing the list of pf tables.
OKed by: philip
MFC after: 1 week
|
|
|
|
|
| |
So _exit() in the bottom of this function should be called with the
same case.
|
|
|
|
| |
r14262).
|
| |
|
| |
|
| |
|
|
|
|
|
| |
add reference to exports(5), since that's the obvious starting point
for searching for this.
|