ref: 7adaa4b130d6f0490d065d48ae8e3283363895ec
parent: b2de370f6c83b544985cc1cbd9f01eedfd412d0e
author: Stanley Lieber <sl@stanleylieber.com>
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)
--
⑨