freebsd-dev/bin
Thomas Quinot cd1832fe92 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
..
cat Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
chflags Add META_MODE support. 2015-06-13 19:20:56 +00:00
chio Add META_MODE support. 2015-06-13 19:20:56 +00:00
chmod Add META_MODE support. 2015-06-13 19:20:56 +00:00
cp Add META_MODE support. 2015-06-13 19:20:56 +00:00
csh Don't link /usr/share/nls/de_DE.UTF-8/tcsh.cat to itself. 2016-02-03 23:37:24 +00:00
date Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
dd Reorganize the handling all-zeroes terminal block in sparse mode 2016-02-18 08:44:16 +00:00
df Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
domainname Add META_MODE support. 2015-06-13 19:20:56 +00:00
echo Add META_MODE support. 2015-06-13 19:20:56 +00:00
ed ed(1): Prevent possible string overflows 2015-12-18 23:05:36 +00:00
expr Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
freebsd-version Add missing CLEANFILES. 2015-12-07 16:08:13 +00:00
getfacl Add META_MODE support. 2015-06-13 19:20:56 +00:00
hostname Add META_MODE support. 2015-06-13 19:20:56 +00:00
kenv Add META_MODE support. 2015-06-13 19:20:56 +00:00
kill Add META_MODE support. 2015-06-13 19:20:56 +00:00
ln Add META_MODE support. 2015-06-13 19:20:56 +00:00
ls Fix ls -l alignement with new locales 2015-12-07 20:48:28 +00:00
mkdir Add META_MODE support. 2015-06-13 19:20:56 +00:00
mv Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
pax pax: prevent possible buffer overflow 2015-12-29 16:31:28 +00:00
pkill Rename P_KTHREAD struct proc p_flag to P_KPROC. 2016-02-09 16:30:16 +00:00
ps Rename P_KTHREAD struct proc p_flag to P_KPROC. 2016-02-09 16:30:16 +00:00
pwait Add META_MODE support. 2015-06-13 19:20:56 +00:00
pwd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rcp Add META_MODE support. 2015-06-13 19:20:56 +00:00
realpath Add META_MODE support. 2015-06-13 19:20:56 +00:00
rm Protecting against rm -rf / is now POSIXLY_CORRECT per posix 1003.1 2015-11-07 02:18:19 +00:00
rmail META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
rmdir Add META_MODE support. 2015-06-13 19:20:56 +00:00
setfacl Don't mention the "canonical six" in setfacl(1); it describes semantics 2016-01-23 12:19:37 +00:00
sh Test directories can build in parallel fine. 2016-02-16 02:13:59 +00:00
sleep Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
stty Prevent potential integer overflow 2015-07-13 05:59:41 +00:00
sync Add META_MODE support. 2015-06-13 19:20:56 +00:00
test test: Optimize operator lookup. 2016-01-30 19:59:58 +00:00
tests Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
uuidgen Add META_MODE support. 2015-06-13 19:20:56 +00:00
Makefile Start using the fact that SUBDIR.yes is added to SUBDIR 2015-10-05 21:41:55 +00:00
Makefile.inc Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00