Applied a patch to support OpenBSD.
authordtrg <none@none>
Sun, 25 Feb 2007 22:07:11 +0000 (22:07 +0000)
committerdtrg <none@none>
Sun, 25 Feb 2007 22:07:11 +0000 (22:07 +0000)
pm

diff --git a/pm b/pm
index 58c9ac3..23560e2 100755 (executable)
--- a/pm
+++ b/pm
@@ -29,7 +29,7 @@ trap "rm -f $GZFILE $CFILE" EXIT
 extract_section() {
        sed -e "1,/^XXXXSTART$1/d" "$THISFILE" | (
                read size
-               head -c $size
+               dd bs=1 count=$size 2> /dev/null
        ) > $GZFILE
        cat $GZFILE | cat
 }