pfg
9880f25a5f
rcp(1): replace 0 with NULL for pointers.
...
Found with devel/coccinelle.
2016-04-11 17:24:26 +00:00
gjb
e0e3598ce1
MFH
...
Sponsored by: The FreeBSD Foundation
2016-04-11 15:24:59 +00:00
pfg
29cd60d86a
sh(1): replace 0 with NULL for pointers.
...
Found with devel/coccinelle.
Reviewed by: jilles
2016-04-09 20:05:39 +00:00
jilles
8c8069ff15
sh: Fix some unquoted variables in tests.
...
The builtins/getopts1.0 test failed if a single-character file existed in
the current directory.
2016-04-09 16:06:13 +00:00
mp
be3e91df09
Revert r296416 by removing SAVESIGVEC and switching to fork instead. This
...
fixes usage with system libraries which maintain their own signal state.
PR: 208132
Obtained from: kib
MFC after: 3 days
2016-04-07 14:25:15 +00:00
gjb
1dc4c40e3b
MFH
...
Sponsored by: The FreeBSD Foundation
2016-04-04 23:55:32 +00:00
jilles
a90ad707c5
sh: Fix use-after-free if a trap replaces itself.
...
MFC after: 1 week
2016-03-28 18:58:40 +00:00
trasz
e94990b345
Fix bunch of .Xrs.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-03-28 16:48:28 +00:00
bdrewery
33d187376d
CCACHE_BUILD: Don't use ccache when generating some files with CC -E.
...
At least for ncurses this fixes a build error due to it trying to run
'ccache --version' to work around a gcc 5 bug using the fix in r287205.
Sponsored by: EMC / Isilon Storage Division
2016-03-24 21:48:13 +00:00
gjb
086e6f562f
MFH
...
Sponsored by: The FreeBSD Foundation
2016-03-14 18:54:29 +00:00
jilles
adf4768f5a
sh: Fix copying uninitialized field 'special'.
...
This just copied uninitialized data and did not depend on it later, so it
should not be dangerous.
Found by: clang static analyzer
2016-03-13 22:54:14 +00:00
kib
c259148074
Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), add
...
login.conf(5) support.
Reviewed by: jilles
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D5610
2016-03-12 14:54:34 +00:00
gjb
1c7e318a9a
MFH
...
Sponsored by: The FreeBSD Foundation
2016-03-10 21:16:01 +00:00
bdrewery
aab40fdc3d
DIRDEPS_BUILD: Connect MK_TESTS.
...
Sponsored by: EMC / Isilon Storage Division
2016-03-09 22:46:01 +00:00
jilles
6e5195ef20
sh: Add test for 'set -o nolog'.
...
The option does not do anything so check that the output of 'set +o' is
different.
2016-03-09 21:05:21 +00:00
jilles
e1e2ce9e63
sh: Avoid out-of-bounds access in setoptionbyindex() for 'set -o nolog'.
...
Reported by: hrs
2016-03-09 21:00:57 +00:00
gjb
a7d86f751a
MFH
...
Sponsored by: The FreeBSD Foundation
2016-03-07 15:44:54 +00:00
jilles
05627affe1
sh: Fix some dead stores.
...
Found by: clang static analyzer
2016-03-06 17:24:02 +00:00
gjb
f4bd2481be
MFH
...
Sponsored by: The FreeBSD Foundation
2016-03-06 04:13:17 +00:00
mp
9e883b407e
Signal handling within tcsh vfork code path will conflict with some system
...
libraries (such as libthr) which maintain their own signal state. This
change adds the tcsh SAVESIGVEC option to save and restore the sigvecs for
the signals the child modifies before it execs.
Reviewed by: kib, rwatson
Reported by: kib
2016-03-05 19:55:42 +00:00
gjb
7f622b8403
MFH
...
Sponsored by: The FreeBSD Foundation
2016-03-02 23:53:08 +00:00
jilles
530eefec62
sh: Remove a redundant STPUTC check.
2016-03-02 22:52:54 +00:00
jilles
3583401113
sh: Don't trust that signal descriptions fit within 49 bytes.
2016-03-02 21:24:46 +00:00
gjb
955ce29ea3
MFH
...
Sponsored by: The FreeBSD Foundation
2016-03-02 16:14:46 +00:00
trasz
569af7e4d7
dump(1) -> dump(8).
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-29 17:17:10 +00:00
kib
e76eb4255b
Implement process-shared locks support for libthr.so.3, without
...
breaking the ABI. Special value is stored in the lock pointer to
indicate shared lock, and offline page in the shared memory is
allocated to store the actual lock.
Reviewed by: vangyzen (previous version)
Discussed with: deischen, emaste, jhb, rwatson,
Martin Simmons <martin@lispworks.com>
Tested by: pho
Sponsored by: The FreeBSD Foundation
2016-02-28 17:52:33 +00:00
trasz
5050f4bc83
Add speed limit to dd(1). This is useful for testing RCTL disk io limits
...
(when they actually get committed, that is), and might also come in handy
in other situations.
Reviewed by: wblock@ (man page)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-28 10:27:12 +00:00
bdrewery
2a891f1feb
DIRDEPS_BUILD: Regenerate without local dependencies.
...
These are no longer needed after the recent 'beforebuild: depend' changes
and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports
skipping 'make depend'.
Sponsored by: EMC / Isilon Storage Division
2016-02-24 17:20:11 +00:00
gjb
4719e40f5b
MFH
...
Sponsored by: The FreeBSD Foundation
2016-02-24 03:08:58 +00:00
jilles
c7d6350d16
sh: Fix set -v and multiline history after r295825.
...
r295825 erroneously dropped the newline from the input data for 'set -v'
output and multiline history.
Reported by: vangyzen
2016-02-23 22:44:01 +00:00
gjb
8bfb527a82
MFH
...
Sponsored by: The FreeBSD Foundation
2016-02-22 12:28:23 +00:00
jilles
100946a0d0
sh: Don't hash alias name when there are no aliases.
2016-02-21 20:58:24 +00:00
jilles
f523bd6c78
sh: Optimize setprompt(0).
...
Avoid doing work to print an empty prompt (such as when reading scripts).
2016-02-21 18:54:17 +00:00
jilles
7ac5bf14ff
sh: Remove unnecessary flushouts while reading script.
...
Output is flushed when a builtin is done or immediately after writing it
(error messages, set -v output, prompts).
2016-02-21 16:48:37 +00:00
trasz
c5bee1a6aa
Make the "invalid numeric value" error message actually displayable
...
(was a dead code before).
Submitted by: bde@ (earlier version)
Reviewed by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-21 14:36:50 +00:00
jilles
5e2165399a
sh: Rework code to remove '\0' from shell input.
...
This fixes bugs where '\0' was not removed correctly and speeds up the
parser.
2016-02-19 21:53:12 +00:00
jilles
f4563d3450
sh: Add tests for comments in sh -c.
2016-02-19 16:56:07 +00:00
thomas
3b2148e299
Reorganize the handling all-zeroes terminal block in sparse mode
...
The intent of the previous code in that case was to force
an explicit write, but the implementation was incorrect, and
as a result the write was never performed. This new implementation
instead uses ftruncate(2) to extend the file with a trailing hole.
Also introduce regression tests for these cases.
PR: 189284
(original PR whose fix introduced this bug)
PR: 207092
Differential Revision: D5248
Reviewed by: sobomax,kib
MFC after: 2 weeks
2016-02-18 08:44:16 +00:00
gjb
adbdbd2fff
MFH
...
Sponsored by: The FreeBSD Foundation
2016-02-18 00:37:58 +00:00
bdrewery
002a527f3e
Test directories can build in parallel fine.
...
Sponsored by: EMC / Isilon Storage Division
2016-02-16 02:13:59 +00:00
gjb
e4997c6184
MFH
...
Sponsored by: The FreeBSD Foundation
2016-02-10 04:20:39 +00:00
gjb
ee23b7758f
Explicitly add unmarked bin/ binaries to the runtime package.
...
Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate
package, which requires pre-install/post-install scripts, to be
added later.
Sponsored by: The FreeBSD Foundation
2016-02-09 16:58:50 +00:00
gjb
c51bb4dda1
Add rcp(1) to the rcmds package.
...
Sponsored by: The FreeBSD Foundation
2016-02-09 16:56:35 +00:00
gjb
99527f7d5a
Add rmail to the sendmail package
...
Sponsored by: The FreeBSD Foundation
2016-02-09 16:54:04 +00:00
kib
736e078495
Rename P_KTHREAD struct proc p_flag to P_KPROC.
...
I left as is an apparent bug in ntoskrnl_var.h:AT_PASSIVE_LEVEL()
definition.
Suggested by: jhb
Sponsored by: The FreeBSD Foundation
2016-02-09 16:30:16 +00:00
trasz
3b90812004
Improve comment to reflect recent changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-09 09:38:05 +00:00
trasz
f44be69b43
Use a proper type for return value of postfix_to_mult(); the way it's
...
being used wouldn't work if the value returned didn't fit in intmax_t.
Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-09 09:37:04 +00:00
trasz
3cff9b6c1c
Use proper functions for parsing the numeric values.
...
Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-09 09:32:10 +00:00
gjb
a44dc347a7
MFH
...
Sponsored by: The FreeBSD Foundation
2016-02-08 12:16:01 +00:00
trasz
c73d67730a
Add 't' and 'p' postfixes to dd(1).
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-02-04 15:21:01 +00:00