FreeBSD Bugzilla – Attachment 207890 Details for
Bug 240875
usr.sbin/sysrc: If the file to be modified does not exist, an error message is displayed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysrc.subr patch obtained from https://github.com/freebsd/poudriere/pull/708#issuecomment-526753174
sysrc.subr.patch (text/plain), 441 bytes, created by
Jose Luis Duran
on 2019-09-27 15:02:24 UTC
(
hide
)
Description:
sysrc.subr patch obtained from https://github.com/freebsd/poudriere/pull/708#issuecomment-526753174
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2019-09-27 15:02:24 UTC
Size:
441 bytes
patch
obsolete
>--- /usr.sbin/bsdconfig/share/sysrc.subr.orig 2019-08-30 13:16:04.604403000 +0000 >+++ /usr.sbin/bsdconfig/share/sysrc.subr 2019-08-30 13:14:55.058956000 +0000 >@@ -560,7 +560,7 @@ f_sysrc_set() > # > if [ "$not_found" ]; then > # Add a newline if missing before appending to the file >- awk 'BEGIN { wc = 0 } NR == 1 { >+ [ ! -e "$file" ] || awk 'BEGIN { wc = 0 } NR == 1 { > (cmd = "wc -l " FILENAME) | getline > close(cmd) > wc = $1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240875
: 207890