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.
show more ...
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
DIRDEPS_BUILD: Connect new directories.Sponsored by: Dell EMC Isilon
Don't check result of chflags in f_flag_cleanup()This will prevent false positives from occurring if the test is run onZFS since ZFS doesn't support fflags throbbing like UFS.PR: 221189MFC afte
Don't check result of chflags in f_flag_cleanup()This will prevent false positives from occurring if the test is run onZFS since ZFS doesn't support fflags throbbing like UFS.PR: 221189MFC after: 4 daysMFC with: r321949
Always use first parameter passed to get_filesystem(..) instead of discarding itand using `.` instead.MFC after: 1 weekMFC with: r321949PR: 221189 [1], 221188 [2]
Add expected failures for ZFS- :f_flag fails on ZFS because UF_IMMUTABLE isn't supported [1].- :v_flag fails on ZFS because the mode for foo is [always] updated unnecessarily.get_filesystem(..
Add expected failures for ZFS- :f_flag fails on ZFS because UF_IMMUTABLE isn't supported [1].- :v_flag fails on ZFS because the mode for foo is [always] updated unnecessarily.get_filesystem(..) (supporting function that was added to the test script)is based on equivalent logic in usr.bin/extattr/tests/extattr_test.sh .MFC after: 1 weekPR: 221189 [1], 221188 [2]
Add HAS_TESTS to all Makefiles that use the SUBDIR.${MK_TESTS}+= tests idiom
Add some basic tests for chmod(1)MFC after: 1 monthSponsored 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
chmod: Add SIGINFO handlerPR: 191884Submitted by: Dan McGregor <dan.mcgregor at usask.ca>Reviewed by: mjg@ (earlier version)
"POSIX doesn't specify -h." - r1.27 from NetBSDhttp://man.openbsd.org/?query=chmod&apropos=0&sec=0&arch=default&manpath=POSIX-2013PR: 212337Approved by: bcr (mentor)Obtained from: NetBSDMFC af
"POSIX doesn't specify -h." - r1.27 from NetBSDhttp://man.openbsd.org/?query=chmod&apropos=0&sec=0&arch=default&manpath=POSIX-2013PR: 212337Approved by: bcr (mentor)Obtained from: NetBSDMFC after: 5 daysDifferential Revision: https://reviews.freebsd.org/D8118
Explicitly add unmarked bin/ binaries to the runtime package.Note: tcsh(1) has a MK_TCSH=no test, so this should be a separatepackage, which requires pre-install/post-install scripts, to beadded l
Explicitly add unmarked bin/ binaries to the runtime package.Note: tcsh(1) has a MK_TCSH=no test, so this should be a separatepackage, which requires pre-install/post-install scripts, to beadded later.Sponsored by: The FreeBSD Foundation
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Fix a lock up where we enter swapper() with interrupts disabled.In smp_rendezvous_cpus we expect to wait for all cpus to entersmp_rendezvous_action. If we call this holding a proc lock swapper may
Fix a lock up where we enter swapper() with interrupts disabled.In smp_rendezvous_cpus we expect to wait for all cpus to entersmp_rendezvous_action. If we call this holding a proc lock swapper mayattempt to also lock it, however as interrupts are disabled the cpu neverhandles the ipi. Because smp_rendezvous_action waits for all signaledcpus before contining it may get caught waiting for the cpu running swapperas the proc mutex will be unlocked after smp_rendezvous_cpus finishes.The fix is to enable interrupts in the configure stage as we should bedoing.MFC after: 1 week
Updated dependencies
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <[email protected]>
Update sticky(7) cross references.PR: docs/124468X-MFC with: r218998
- Don't include both <sys/types.h> and <sys/param.h>- Keep variables sorted- Fix logic error with -f and -v options - don't print the usual -v output if there was an error, whether or not we
- Don't include both <sys/types.h> and <sys/param.h>- Keep variables sorted- Fix logic error with -f and -v options - don't print the usual -v output if there was an error, whether or not we were passed -f- Don't call free(3) just before exit(2)- Whitespace fixesSubmitted by: bde
Make the code more readable and fix chmod(1) on symlinks withNFSv4 enabled.
With NFSv4 ACLs, it is possible that applying a mode to an ACL whichis identical to the mode computed from that ACL will modify the ACL.For example, mode computed from the following ACL is 0600:
With NFSv4 ACLs, it is possible that applying a mode to an ACL whichis identical to the mode computed from that ACL will modify the ACL.For example, mode computed from the following ACL is 0600: user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allowHowever, applying that mode (chmod 0600) changes the ACL into this: user:kamila:rwx-----------:------:deny user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allowIn chmod(1) utility, there is an optimisation, which makes it notcall chmod(2) if the mode of the file is the same as the new mode.Disable that optimisation for files which may have NFSv4 ACLs.Reviewed by: rwatsonApproved by: re (kib)
Staticify internal routines.
1234