From 3cd0ca0e9234a413c31151076dcca5ca2c1f4041 Mon Sep 17 00:00:00 2001 From: stanleylieber Date: Sun, 14 Jun 2020 22:30:20 -0400 Subject: [PATCH] bin/contrib/rc-httpd/rc-httpd: plan9port does not have read -c; replace with dd (thanks, khm) --- bin/contrib/rc-httpd/rc-httpd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/contrib/rc-httpd/rc-httpd b/bin/contrib/rc-httpd/rc-httpd index 13bb3da..8e4fad9 100755 --- a/bin/contrib/rc-httpd/rc-httpd +++ b/bin/contrib/rc-httpd/rc-httpd @@ -24,7 +24,7 @@ fn terminate{ exit terminate } -fn trim_input{ read -c $CONTENT_LENGTH } +fn trim_input{ dd -bs 1 -count $CONTENT_LENGTH } request=`{getline} if(~ $#request 0)