T1485 - constrains dd to write the original file size when overwriting

This commit is contained in:
George Allen
2021-11-23 22:39:51 +00:00
parent 4cf57b9ec8
commit 1b2cbdba8d
+1 -1
View File
@@ -51,5 +51,5 @@ atomic_tests:
default: /var/log/syslog
executor:
command: |
dd of=#{file_to_overwrite} if=#{overwrite_source}
dd of=#{file_to_overwrite} if=#{overwrite_source} count=$(ls -l #{file_to_overwrite} | awk '{print $5}') iflag=count_bytes
name: bash