Remove extraneous setutxent() calls in write(1).We already call setutxent() once during initialization. Furthermore,the subsequent calls occur after the process has entered capabilitymode, so th
Remove extraneous setutxent() calls in write(1).We already call setutxent() once during initialization. Furthermore,the subsequent calls occur after the process has entered capabilitymode, so they fail, and attempts to fetch database entries fail asa result.PR: 235096Submitted by: [email protected]MFC after: 3 days
show more ...
capsicum: use a new capsicum helpers in toolsUse caph_{rights,ioctls,fcntls}_limit to simplify the code.
Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.No functional change intended.
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
DIRDEPS_BUILD: Update dependencies.MFC after: 2 weeksSponsored by: Dell EMC Isilon
write(1): CapsicumifyEnter Capsicum capability sandbox pretty early in this setuid program.Some minor modifications were needed to cache directory fds and userelative lookups.Rights restrictio
write(1): CapsicumifyEnter Capsicum capability sandbox pretty early in this setuid program.Some minor modifications were needed to cache directory fds and userelative lookups.Rights restriction of the stdio descriptors is unfortunately pretty messybecause we need an ioctl capability not present in the current libcapsicumhelpers (FIODGNAME).Reviewed by: edSponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D7999
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Updated dependencies
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <[email protected]>
Fix write(1) to support wide characters.Submitted by: amdmi3PR: bin/164317
Remove the advertising clause from UCB copyrighted files in usr.bin. Thisis in accordance with the information provided atftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeAlso add $F
Remove the advertising clause from UCB copyrighted files in usr.bin. Thisis in accordance with the information provided atftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeAlso add $FreeBSD$ to a few files to keep svn happy.Discussed with: imp, rwatson
Perform all trivial ports to utmpx for usr.bin/.They were already converted to use libulog, so it's easy to convert themto utmpx.
Build usr.bin/ with WARNS=6 by default.Also add some missing $FreeBSD$ to keep svn happy.
Let wall(1) use utmpx.Because our implementation guarantees the strings inside struct utmpx tobe null terminated, we don't need to copy everything out, which makesthe code nicer to read.Also se
Let wall(1) use utmpx.Because our implementation guarantees the strings inside struct utmpx tobe null terminated, we don't need to copy everything out, which makesthe code nicer to read.Also set WARNS to 6 and add $FreeBSD$ to keep SVN happy.
write(1) needs to strip off the leading /dev/ from the tty name for thecurrent tty as returned from ttyname(3) so it can try to avoid writing tothe current tty if possible. Previously, it did this
write(1) needs to strip off the leading /dev/ from the tty name for thecurrent tty as returned from ttyname(3) so it can try to avoid writing tothe current tty if possible. Previously, it did this by trimming off anyleading directory (effectively performing a basename(3) on the pathreturned from ttyname(3)). However, this chopped off too much of the pathfor ttys who have directories in their name such as pts(4). Instead, juststrip off the leading /dev/ from the path returned by ttyname(3). Thisfixes write(1) when using pts(4).MFC after: 1 weekReported by: rwatson
Sync program's usage() with manpage's SYNOPSIS.
Expand contractions.
Fix a typo in comment.Reviewed by: mux (mentor)
Mention in the BUGS section that write and wall bogusly use the sender'sLC_CTYPE setting instead of the receiver's when determining whichcharacters are printable.
12