#
c2d93a80 |
| 08-Oct-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
env: Check the status of stdout.
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D47009
|
#
6f6166e4 |
| 08-Oct-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
env: Add an option to change the directory.
This mirrors the equivalent option in GNU coreutils env, but does not add support for long options.
MFC after: 3 days Relnotes: yes Sponsored by: Klara,
env: Add an option to change the directory.
This mirrors the equivalent option in GNU coreutils env, but does not add support for long options.
MFC after: 3 days Relnotes: yes Sponsored by: Klara, Inc. Reviewed by: 0mp, bcr Differential Revision: https://reviews.freebsd.org/D47008
show more ...
|
Revision tags: release/13.4.0, release/14.1.0, release/13.3.0 |
|
#
0b8224d1 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
#
bdcbfde3 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a pe
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
a1b6427a |
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
#
0c1a5eaa |
| 03-Mar-2021 |
Kyle Evans <kevans@FreeBSD.org> |
env: style(9) fix, add a space
Reported by: pstef Fixes: 55deb0a5f089 ("service(8): use an environment more [...]")
|
#
55deb0a5 |
| 03-Mar-2021 |
Andrew Gierth <andrew@tao146.riddles.org.uk> |
service(8): use an environment more consistent with init(8)
init(8) sets the "daemon" login class without specifying a pw entry (so no substitutions are done on the variables). service(8)'s use of e
service(8): use an environment more consistent with init(8)
init(8) sets the "daemon" login class without specifying a pw entry (so no substitutions are done on the variables). service(8)'s use of env -L had the effect of specifying root's pw entry, with two effects: getpwnam and getpwuid are being called, which may not be entirely safe depending on what nsswitch is up to and what stage of boot we are at, and substitutions would have been done.
Fix by teaching env(8) to allow -L -/classname to set the class environment with no pw entry at all specified, and use it in service(8).
PR: 253959
show more ...
|
Revision tags: release/12.2.0, release/11.4.0 |
|
#
bc02c18c |
| 07-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357408 through r357661.
|
#
85c8521e |
| 05-Feb-2020 |
Kyle Evans <kevans@FreeBSD.org> |
env(1): grow -L user/class and -U user/class options
This allows one to set the environment of the specified user either from login.conf alone (-L) or both login.conf and ~/.login_conf if present (-
env(1): grow -L user/class and -U user/class options
This allows one to set the environment of the specified user either from login.conf alone (-L) or both login.conf and ~/.login_conf if present (-U).
This is a supporting feature to allow service(8) to pull in the environment of the "daemon" class before invoking the rc script.
This is a part of D21481.
Submitted by: Andrew Gierth < andrew_tao173.riddles.org.uk>
show more ...
|
#
5e5ceb11 |
| 07-Nov-2019 |
Joseph Mingrone <jrm@FreeBSD.org> |
Add -0 option to ENV(1)
With the -0 option added to ENV(1), some ports will no longer require genv from sysutils/coreutils.
Reviewed by: kevans (prior version), swills Approved by: bcr (manpages),
Add -0 option to ENV(1)
With the -0 option added to ENV(1), some ports will no longer require genv from sysutils/coreutils.
Reviewed by: kevans (prior version), swills Approved by: bcr (manpages), imp Differential Revision: https://reviews.freebsd.org/D22230
show more ...
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
82725ba9 |
| 23-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325999 through r326131.
|
#
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
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 specification to 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 specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that 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 of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0 |
|
#
348238db |
| 01-Mar-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314420 through r314481.
|
#
fbbd9655 |
| 01-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|
Revision tags: 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, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0 |
|
#
da52b4ca |
| 11-Dec-2010 |
Joel Dahl <joel@FreeBSD.org> |
Remove the advertising clause from UCB copyrighted files in usr.bin. This is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $F
Remove the advertising clause from UCB copyrighted files in usr.bin. This is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
show more ...
|
Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, 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 |
|
#
a414225d |
| 18-Apr-2008 |
Garance A Drosehn <gad@FreeBSD.org> |
Add the '-u name' option to the env command, which will completely unset the given variable name (removing it from the environment, instead of just setting it to a null value).
PR: bin/65649 MFC af
Add the '-u name' option to the env command, which will completely unset the given variable name (removing it from the environment, instead of just setting it to a null value).
PR: bin/65649 MFC after: 2 weeks
show more ...
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
2966d28c |
| 04-Jul-2007 |
Sean Farley <scf@FreeBSD.org> |
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 <ache@FreeBSD.org> |
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 ...
|
#
ed4bcacf |
| 30-Apr-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
env calls setenv("name=value", "value", 1); which violates POSIX: "The setenv( ) function shall fail if: [EINVAL] The name argument is a null pointer, points to an empty string, or points to a string
env calls setenv("name=value", "value", 1); which violates POSIX: "The setenv( ) function shall fail if: [EINVAL] The name argument is a null pointer, points to an empty string, or points to a string containing an '=' character." The fix (like all others in this subject) is backward-compatible.
show more ...
|
Revision tags: release/6.2.0_cvs, release/6.2.0, 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 |
|
#
2f739d3c |
| 21-Jun-2005 |
Garance A Drosehn <gad@FreeBSD.org> |
Undo r1.14 to env.c. While it is unusual for environment variables to start with a '/', they are more supported (by POSIX and SUSv3) than filenames which have an '=' in them.
Noticed by: tjr Approv
Undo r1.14 to env.c. While it is unusual for environment variables to start with a '/', they are more supported (by POSIX and SUSv3) than filenames which have an '=' in them.
Noticed by: tjr Approved by: re (blanket `env')
show more ...
|
#
8fbe7ebf |
| 20-Jun-2005 |
Garance A Drosehn <gad@FreeBSD.org> |
Add the '-S' and '-P' options. The '-S' option can be used to split apart a string, and supports some text substitutions. This can be used to provide all the flexibility (and more!) that was lost b
Add the '-S' and '-P' options. The '-S' option can be used to split apart a string, and supports some text substitutions. This can be used to provide all the flexibility (and more!) that was lost by recent changes to how the kernel parses #!-lines in shell scripts.
The '-P' option provides a way to specify an alternate set of directories to use when searching for the 'utility' program to run. This way you can be sure what directories are used for that search, without changing the value of PATH that the user has set. Note that on FreeBSD 6.0, this option is worthless unless the '-S' option is also used.
Approved by: re (blanket `env')
show more ...
|
#
6dcd6cac |
| 20-Jun-2005 |
Garance A Drosehn <gad@FreeBSD.org> |
If the `utility' specified starts with a '/' character, then execute it without checking it for an equals-sign. If it starts with a slash, then it cannot be a request to set the value of a valid env
If the `utility' specified starts with a '/' character, then execute it without checking it for an equals-sign. If it starts with a slash, then it cannot be a request to set the value of a valid environment variable.
Approved by: re (blanket `env')
show more ...
|
#
212274c3 |
| 20-Jun-2005 |
Garance A Drosehn <gad@FreeBSD.org> |
Move the code that clears the environment when `-i' is specified, so it that it does not happen until all single-letter options are processed. This will be important for the -S option, which will be
Move the code that clears the environment when `-i' is specified, so it that it does not happen until all single-letter options are processed. This will be important for the -S option, which will be coming soon.
Approved by: re (blanket `env')
show more ...
|
#
f66e378b |
| 20-Jun-2005 |
Garance A Drosehn <gad@FreeBSD.org> |
Add a '-v' option to `env', to make it easier to discover exactly what steps it is doing, and what order it does them. This will be much more useful as more options are added.
Approved by: re (blan
Add a '-v' option to `env', to make it easier to discover exactly what steps it is doing, and what order it does them. This will be much more useful as more options are added.
Approved by: re (blanket `env')
show more ...
|