ref: c8ea93b4d9fd92e3457e6c8a7acf0b0f61b16d2a
parent: 94488206bdf9439045d61afe0f16f533397f4474
author: sl <[email protected]>
date: Sun Jun 14 18:30:20 EDT 2020
bin/contrib/rc-httpd/rc-httpd: plan9port does not have read -c; replace with dd (thanks, khm)
--- a/bin/contrib/rc-httpd/rc-httpd
+++ b/bin/contrib/rc-httpd/rc-httpd
@@ -24,7 +24,7 @@
exit terminate
}
-fn trim_input{ read -c $CONTENT_LENGTH }
+fn trim_input{ dd -bs 1 -count $CONTENT_LENGTH }
request=`{getline}
if(~ $#request 0)