| #
c97460c4
|
| 14-Apr-2025 |
Michal Scigocki <michal.os@hotmail.com> |
sysrc: Fix check flag logic for append and subtract
When using sysrc with the check flag (-c), the append (+=) and subtract (-=) operations result in incorrect return values because on the check pat
sysrc: Fix check flag logic for append and subtract
When using sysrc with the check flag (-c), the append (+=) and subtract (-=) operations result in incorrect return values because on the check path the necessary union/difference calculation logic is not performed.
However, the correct union/difference calculation is already performed when running without the check flag. We fix the issue on the check path by using the results from the existing union/difference calculation in the check logic to get the correct return values.
PR: 279200 Reviewed by: markj MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/1664
show more ...
|
| #
d0b2dbfa
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| #
c97460c4
|
| 14-Apr-2025 |
Michal Scigocki <michal.os@hotmail.com> |
sysrc: Fix check flag logic for append and subtract
When using sysrc with the check flag (-c), the append (+=) and subtract (-=) operations result in incorrect return values because on the check pat
sysrc: Fix check flag logic for append and subtract
When using sysrc with the check flag (-c), the append (+=) and subtract (-=) operations result in incorrect return values because on the check path the necessary union/difference calculation logic is not performed.
However, the correct union/difference calculation is already performed when running without the check flag. We fix the issue on the check path by using the results from the existing union/difference calculation in the check logic to get the correct return values.
PR: 279200 Reviewed by: markj MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/1664
show more ...
|
| #
d0b2dbfa
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| #
e7199427
|
| 16-Jul-2018 |
Devin Teske <dteske@FreeBSD.org> |
sysrc(8): Send error message to stderr (not stdout)
PR: bin/229806 Reported by: Andreas Sommer <andreas.sommer87@googlemail.com> MFC after: 3 days X-MFC-to: stable/11 stable/10 stable/9 Sponsored b
sysrc(8): Send error message to stderr (not stdout)
PR: bin/229806 Reported by: Andreas Sommer <andreas.sommer87@googlemail.com> MFC after: 3 days X-MFC-to: stable/11 stable/10 stable/9 Sponsored by: Smule, Inc.
show more ...
|
| #
5c165dcf
|
| 17-Jun-2018 |
Devin Teske <dteske@FreeBSD.org> |
sysrc(8): Exit with failure on API error
Fix exit status when f_sysrc_set() fails. Errors in the underlying API provided by bsdconfig(8) -- /usr/share/bsdconfig/sysrc.subr -- were not being communic
sysrc(8): Exit with failure on API error
Fix exit status when f_sysrc_set() fails. Errors in the underlying API provided by bsdconfig(8) -- /usr/share/bsdconfig/sysrc.subr -- were not being communicated back to the command-line. This was affecting ansible modules using sysrc as they were not able to accurately test for error.
PR: bin/211448 Reported by: Christian Schwarz <me@cschwarz.com> MFC after: 3 days X-MFC-to: stable/11 Sponsored by: Smule, Inc.
show more ...
|
| #
a03d5f8b
|
| 28-May-2018 |
Devin Teske <dteske@FreeBSD.org> |
sysrc(8): Test variable names for invalid characters
PR: bin/187461 Reported by: ebay@looksharp.net MFC after: 4 weeks X-MFC-to: stable/11 (after 11.2-R) Sponsored by: Smule, Inc.
|
| #
a49d8b6e
|
| 06-Feb-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r294961 through r295350.
|
| #
2414e864
|
| 03-Feb-2016 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
MfH @r295202
Expect to see panics in routing code at least now.
|
| #
3bea1c13
|
| 03-Feb-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
| #
d2ac785e
|
| 02-Feb-2016 |
Devin Teske <dteske@FreeBSD.org> |
Fix a typo in a comment
|
| #
0bcc841c
|
| 02-Feb-2016 |
Devin Teske <dteske@FreeBSD.org> |
Bump version to 7.1 for +=/-= fix
MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r295169, r295170
|
| #
221b3499
|
| 02-Feb-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
| #
6350eae8
|
| 02-Feb-2016 |
Devin Teske <dteske@FreeBSD.org> |
For +=/-=, add . and / to convenience characters
sysrc(8) supports key+=value and key-=value, but can be told what the delimiter is by being passed as char1 (e.g., "sysrc key+=",value" to use a comm
For +=/-=, add . and / to convenience characters
sysrc(8) supports key+=value and key-=value, but can be told what the delimiter is by being passed as char1 (e.g., "sysrc key+=",value" to use a comma as the delimiter instead of space). For convenience, if the first char is alpha-numeric, it is assumed you wanted whitespace as the delimiter.
However, if you naively (as I just did) execute: sysrc rc_conf_files+=/etc/rc.conf.other the result is unexpected.
This commit makes `.' and `/' in-addition to alpha-numeric first-characters to cause the default of whitespace to be used as the delimiter. This also means that you can no longer use these as a delimiter.
show more ...
|
| #
b626f5a7
|
| 04-Jan-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH r289384-r293170
Sponsored by: The FreeBSD Foundation
|
| #
a5d8944a
|
| 19-Nov-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Catch up with head (r291075).
|
| #
3e4f384e
|
| 07-Nov-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head r290483
|
| #
4fb1de43
|
| 03-Nov-2015 |
Devin Teske <dteske@FreeBSD.org> |
Add sysrc(8) support for "rc.conf.d" file(s) when given "-s name" to indicate service(8) script. While here, add "-l" option for listing the set of configuration file(s) considered (in order; separat
Add sysrc(8) support for "rc.conf.d" file(s) when given "-s name" to indicate service(8) script. While here, add "-l" option for listing the set of configuration file(s) considered (in order; separated by space). Also add "-L" for exploring all configuration files and "-E" to omit files that don't exist from operations.
Differential Revision: https://reviews.freebsd.org/D3551 Reviewed by: allanjude MFC after: 1 week X-MFC-to: stable/10 Relnotes: yes
show more ...
|
| #
11d38a57
|
| 28-Oct-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
Sponsored by: Gandi.net
|
| #
becbad1f
|
| 13-Oct-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
|
| #
f94594b3
|
| 12-Sep-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Finish merging from head, messed up in previous attempt
|
| #
00176600
|
| 09-Sep-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Merge r286744-r287584 from head.
|
| #
d9442b10
|
| 05-Sep-2015 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r286858 through r287489.
|
| #
61016a61
|
| 02-Sep-2015 |
Devin Teske <dteske@FreeBSD.org> |
Minor code cleanups (no functional changes).
MFC after: 3 days X-MFC-to: stable/10
|
| #
9c10871d
|
| 01-Sep-2015 |
Devin Teske <dteske@FreeBSD.org> |
Bump version for altered long-opts processing
MFC after: 3 days X-MFC-to: stable/10
|