OPNsense - FreeBSD source
Find a file
Olivier Certner 83bcaf3b2d login_cap.c: Don't set errno to ERANGE on memory allocation failure
Modified functions: login_getcaptime(), login_getcapnum(),
login_getcapsize().

They all call cgetstr(), which returns -2 on such conditions and already
sets errno to ENOMEM, arguably the appropriate value for these functions
as well.

No in-tree consumer currently checks for errno on error reported by
these functions, so this change has no other code impact.

Reviewed by:            kib
MFC after:              2 weeks
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D40342

(cherry picked from commit b8c1aadef9)
2023-10-13 10:13:38 -04:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin ps: add a new option -D to reimplement tree traversal 2023-08-24 18:35:56 +02:00
cddl zfs: update share/zfs/compatibility.d to match current ZFS code 2023-09-24 10:27:38 +02:00
contrib local-unbound: remove stray config.h.in backup 2023-10-03 18:01:06 -07:00
crypto openssl: document the update process 2023-10-13 10:13:38 -04:00
etc include: Implement N2867. 2023-09-07 20:28:31 +00:00
gnu Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
include FreeBSD: Reduce divergence from in-tree sources 2023-10-10 19:19:09 -07:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lib login_cap.c: Don't set errno to ERANGE on memory allocation failure 2023-10-13 10:13:38 -04:00
libexec MFC jail: avoid a clash with /etc/jail.conf.d between rc and jail(8) 2023-09-27 21:39:00 -07:00
release EC2: Add experimental cloud-init images 2023-10-03 10:28:18 -07:00
rescue zfs: merge openzfs/zfs@32949f256 (zfs-2.2-release) into stable/14 2023-09-03 09:15:24 +02:00
sbin sysctl: emit a newline after NULL node descriptions 2023-10-13 10:12:34 -04:00
secure OpenSSL: update to 3.0.11 2023-10-12 14:46:11 -04:00
share axge: Add support for AX88179A 2023-10-11 09:16:14 -04:00
stand stand: lua: module names should permit more 2023-09-11 17:01:52 -05:00
sys dtrace: remove x86 non-EARLY_AP_STARTUP support 2023-10-13 10:13:14 -04:00
targets Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests if_ovpn tests: fix ra test 2023-10-12 09:47:06 +02:00
tools tools/wlanstats: fix -Wunused-but-set-variable 2023-10-04 15:19:17 +00:00
usr.bin fortune: use 115200 in serial example 2023-10-13 10:13:38 -04:00
usr.sbin freebsd-update: add a note about when files may be deleted 2023-10-13 10:13:38 -04:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml CI: add FreeBSD build with Cirrus CI 2023-10-07 09:08:20 -07:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore mailmap: initial, trying to tidy up a lot of the commit history 2023-10-10 19:19:09 -07:00
CONTRIBUTING.md CONTRIBUTING.md: reinsert double spaces 2023-07-10 12:24:24 -06:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Makefile: Support universe-toolchain on non-FreeBSD 2023-08-23 18:00:16 +01:00
Makefile.inc1 libcrypto: link engines and the legacy provider to libcrypto 2023-09-19 11:01:55 -04:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ObsoleteFiles.inc: only leave ofwdump.8.gz when WITH_FDT is set 2023-10-04 02:42:32 +02:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES Fix typo in RELNOTES (objump -> objdump) 2023-09-24 09:18:21 -04:00
UPDATING Belatedly document OPIE removal in RELNOTES and UPDATING. 2023-09-14 08:56:45 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.