Mercurial > hgrepos > hgweb.cgi > s4
comparison s4-funcs.sh @ 724:489efda25567
tmpf should be passed by variable...
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 31 May 2020 16:48:52 +0900 |
parents | b8f5bfb91ea2 |
children | 541f39bcaba4 |
comparison
equal
deleted
inserted
replaced
723:b8f5bfb91ea2 | 724:489efda25567 |
---|---|
1411 post|POST) ## dd count=$CONTENT_LENGTH bs=1 of=$tmpf 2>/dev/null #slow | 1411 post|POST) ## dd count=$CONTENT_LENGTH bs=1 of=$tmpf 2>/dev/null #slow |
1412 ## dd bs=$CONTENT_LENGTH count=1 of=$tmpf # NOT working | 1412 ## dd bs=$CONTENT_LENGTH count=1 of=$tmpf # NOT working |
1413 # cat > $tmpf # too much? | 1413 # cat > $tmpf # too much? |
1414 head -c $CONTENT_LENGTH > $tmpf # safe? | 1414 head -c $CONTENT_LENGTH > $tmpf # safe? |
1415 (echo CL=$CONTENT_LENGTH; ls -lF $tmpf) 1>&3 | 1415 (echo CL=$CONTENT_LENGTH; ls -lF $tmpf) 1>&3 |
1416 s="`cat tmp/stream`" | 1416 s="`cat $tmpf`" |
1417 tmpfiles=$tmpfiles"${tmpfiles+ }$tmpf" | 1417 tmpfiles=$tmpfiles"${tmpfiles+ }$tmpf" |
1418 ;; | 1418 ;; |
1419 esac | 1419 esac |
1420 case "$CONTENT_TYPE" in | 1420 case "$CONTENT_TYPE" in |
1421 *boundary*) | 1421 *boundary*) |