|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
| #
b2c76c41 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line nroff pattern
Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
|
Revision tags: release/13.2.0 |
|
| #
d5df2685 |
| 14-Mar-2023 |
Warner Losh <[email protected]> |
secure_getenv: Improve documentation wording
Improve the documentation wording to be more consistent with FreeBSD manual pages.
Suggested by: mjg (though reworded) Sponsored by: Netflix
|
| #
adeca214 |
| 13-Mar-2023 |
lucy <[email protected]> |
Add GNU glibc compatible secure_getenv
Add mostly glibc and msl compatible secure_getenv. Return NULL if issetugid() indicates the process is tainted, otherwise getenv(x). The rational behind this
Add GNU glibc compatible secure_getenv
Add mostly glibc and msl compatible secure_getenv. Return NULL if issetugid() indicates the process is tainted, otherwise getenv(x). The rational behind this is the fact that many Linux applications use this function instead of getenv() as it's widely consider a, "best practice".
Reviewed by: imp, mjg (feedback) Pull Request: https://github.com/freebsd/freebsd-src/pull/686 Signed-off-by: Lucy Marsh <[email protected]>
show more ...
|
|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0 |
|
| #
597b0267 |
| 07-Nov-2021 |
Mariusz Zaborski <[email protected]> |
libc: add clearenv function
The clearenv(3) function allows us to clear all environment variable in one shot. This may be useful for security programs that want to control the environment or what va
libc: add clearenv function
The clearenv(3) function allows us to clear all environment variable in one shot. This may be useful for security programs that want to control the environment or what variables are passed to new spawned programs.
Reviewed by: scf, markj (secteam), 0mp (manpages) Differential Revision: https://reviews.freebsd.org/D28223
show more ...
|
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0 |
|
| #
3fb3b97c |
| 28-May-2013 |
Ed Maste <[email protected]> |
Renumber clauses to reduce diffs to other versions
NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3, so follow suit to make comparison easier.
|
|
Revision tags: release/9.1.0 |
|
| #
a3fb6da9 |
| 11-May-2012 |
Glen Barber <[email protected]> |
General mdoc(7) and typo fixes.
PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
|
|
Revision tags: release/8.3.0_cvs, release/8.3.0 |
|
| #
50d675f7 |
| 29-Mar-2012 |
Eitan Adler <[email protected]> |
Remove trailing whitespace per mdoc lint warning
Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
|
|
Revision tags: release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0 |
|
| #
ef6ccfb5 |
| 06-Dec-2009 |
Sean Farley <[email protected]> |
Update the getenv(3) man page to reflect the recent change to the behavior of setenv(), putenv() and unsetenv() when dealing with corrupt entries in environ. They now output a warning and complete t
Update the getenv(3) man page to reflect the recent change to the behavior of setenv(), putenv() and unsetenv() when dealing with corrupt entries in environ. They now output a warning and complete their task without error.
MFC after: 1 week
show more ...
|
|
Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
| #
2966d28c |
| 04-Jul-2007 |
Sean Farley <[email protected]> |
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value.
Convert all calls to POSIX fr
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value.
Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT.
Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv().
New regression module for tools/regression/environ to test these functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826 Approved by: wes Approved by: re (kensmith)
show more ...
|
| #
ba174a5e |
| 01-May-2007 |
Andrey A. Chernov <[email protected]> |
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and r
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that.
Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
show more ...
|
| #
fad69179 |
| 30-Apr-2007 |
Andrey A. Chernov <[email protected]> |
Bump .Dd
Suggested by: Henrik Brix Andersen <[email protected]>
|
| #
a7b27253 |
| 30-Apr-2007 |
Andrey A. Chernov <[email protected]> |
Add phrase "so altering the argument shall change the environment." into putenv description.
|
| #
15fdb055 |
| 30-Apr-2007 |
Andrey A. Chernov <[email protected]> |
Make putenv() fully conforms to Open Group specs Issue 6 (also IEEE Std 1003.1-2001)
The specs explicitly says that altering passed string should change the environment, i.e. putenv() directly puts
Make putenv() fully conforms to Open Group specs Issue 6 (also IEEE Std 1003.1-2001)
The specs explicitly says that altering passed string should change the environment, i.e. putenv() directly puts its arg into environment (unlike setenv() which just copies it there). It means that putenv() can't be implemented via setenv() (like we have before) at all. Putenv() value lives (allows modifying) up to the next putenv() or setenv() call.
show more ...
|
| #
00f86522 |
| 30-Apr-2007 |
Andrey A. Chernov <[email protected]> |
Remove special case skipping initial '=' of the setenv() value "for compatibility with the different environment conventions" (man page). With the standards, we don't have them different anymore and
Remove special case skipping initial '=' of the setenv() value "for compatibility with the different environment conventions" (man page). With the standards, we don't have them different anymore and IEEE Std 1003.1-2001 says that
"The values that the environment variables may be assigned are not restricted except that they are considered to end with a null byte"
show more ...
|
| #
bdda8934 |
| 30-Apr-2007 |
Andrey A. Chernov <[email protected]> |
Make setenv, putenv, getenv and unsetenv conforming to Open Group specs Issue 6 (also IEEE Std 1003.1-2001) in following areas: args, return, errors.
Putenv still needs rewriting because specs expli
Make setenv, putenv, getenv and unsetenv conforming to Open Group specs Issue 6 (also IEEE Std 1003.1-2001) in following areas: args, return, errors.
Putenv still needs rewriting because specs explicitly says that altering passed string later should change the environment (currently we copy the string so can't provide that).
show more ...
|
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
| #
c879ae35 |
| 09-Jan-2007 |
Warner Losh <[email protected]> |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
| #
79d9a182 |
| 12-Oct-2006 |
Tom Rhodes <[email protected]> |
Note that the value from getenv() should not be modified by applications.
PR: 60544 Reviewed by: ru
|
| #
0b0ea948 |
| 07-Oct-2006 |
Tom Rhodes <[email protected]> |
getenv.3: Put "is" on a line with other words getobjformat.3: "takes precedence over" is not an envrionment variable.
PR: 75545 Submitted by: [email protected] MFC after: 3 days
|
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
| #
24a0682c |
| 20-Jan-2005 |
Ruslan Ermilov <[email protected]> |
Sort sections.
|
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
| #
2410103c |
| 07-Jul-2004 |
Ruslan Ermilov <[email protected]> |
mdoc(7) fixes.
|
| #
af73aa7c |
| 06-Jul-2004 |
Hiten Pandya <[email protected]> |
Move the return value information about the getenv(3) library function under the RETURN VALUES section so it is consistent with others.
Cleanup the return value text for getenv(3) a little while I a
Move the return value information about the getenv(3) library function under the RETURN VALUES section so it is consistent with others.
Cleanup the return value text for getenv(3) a little while I am here.
PR: docs/58033 MFC after: 3 days
show more ...
|
| #
1a0a9345 |
| 02-Jul-2004 |
Ruslan Ermilov <[email protected]> |
Mechanically kill hard sentence breaks.
|
|
Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
| #
5c564bae |
| 18-Dec-2002 |
Ruslan Ermilov <[email protected]> |
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
|
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
| #
8aefde06 |
| 07-Sep-2001 |
Jeroen Ruigrok van der Werven <[email protected]> |
Move to using .In instead of .Fd #include <> for include mark-up.
Inspired by comment from: dd
|
| #
d6002fef |
| 31-Aug-2001 |
Ruslan Ermilov <[email protected]> |
Use ``.Rv -std'' wherever possible.
Submitted by: yar
|