summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-18 20:52:33 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-18 20:52:33 +0100
commit762684c0e4ecab0f50f5d79bb9e961716ccff74e (patch)
treefe4ab793f43960e5783b1625de2ecf51511e8f0d /fb.in
parent9bd3b56acd7305b3194246187928485022ec6093 (diff)
fb.in: fix stat call on darwin
%b returns blocks, but we want bytes (%z) Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/fb.in b/fb.in
index a0590eb..19cba7a 100644
--- a/fb.in
+++ b/fb.in
@@ -27,9 +27,8 @@ LIBDIR="@LIBDIR@"
# the calling conventions for stat(1) are highly system dependent
STAT='stat -c %s' # GNU stat(1) is the default since most people have it
case "`uname -s`" in
- *BSD) STAT='stat -f %z';;
+ *BSD|Darwin) STAT='stat -f %z';;
Minix) STAT='stat -size';;
- Darwin) STAT='stat -f %b';;
esac
base64_encode() {