]> granicus.if.org Git - zfs/commit
All calls to ftruncate() must have their return code checked.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Aug 2009 17:11:03 +0000 (10:11 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Aug 2009 17:11:03 +0000 (10:11 -0700)
commite6b541db64b6bd103807f9215e2d2356954d28df
tree890ce87a9d24213bfc0b0b497c1ba0b0821a3a8f
parentdbaf4f6c0f55dd8c124b42af8a49369463cc97b7
All calls to ftruncate() must have their return code checked.
Under FC11 rpm builds by default add the --fortify-source option which
ensures that functions flagged with certain attributes must have their
return codes checked.  Normally this is just a warning but we always
build with -Werror so this is fatal.  Simply wrap the function in a
verify call to ensure we catch a failure if there is one.
cmd/ztest/ztest.c