]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/fuzzing Truncate the original files after RUNPATH manipulation in build.sh
authorAndrew Bartlett <abartlet@samba.org>
Sat, 7 Dec 2019 18:45:58 +0000 (07:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Dec 2019 07:50:29 +0000 (07:50 +0000)
This saves space on the rackspace runners in particular.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/fuzzing/oss-fuzz/build_samba.sh

index 2c09ba323efbd74cf481e5fb15fbc527333a47ec..e4783442b207d2ac94c021e877691650a3334a1b 100755 (executable)
@@ -64,4 +64,7 @@ do
     # Change RUNPATH so that the copied libraries are found on the
     # runner
     chrpath -r '$ORIGIN/lib' $OUT/$bin
+
+    # Truncate the original binary to save space
+    echo -n > $x
 done