summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.in b/fb.in
index 04750d6..7ca5b6c 100644
--- a/fb.in
+++ b/fb.in
@@ -69,7 +69,7 @@ request_helper() {
if [ "$mode" = "u" ]; then
basefilename=`basename -- "$file"`
if [ "`$STAT -- "$file"`" -eq "0" ] || printf "%s" "$basefilename" | grep -F -q ","; then
- if [ "`wc -c -- "$file" | cut -d\ -f1`" -eq "0" ]; then
+ if [ "`wc -c < "$file"`" -eq "0" ]; then
printf "%s\n" "Error: skipping 0-byte file: \"$file\"" >&2
return 1
fi