Pass limit variable when changing ulimit for open files
@@ -234,7 +234,7 @@ fixlimits () {
else
# number of open files:
if [ $file_descriptor -lt $file_descriptor_limit ]; then
- ulimit -n files || exit 1
+ ulimit -n "$file_descriptor_limit" || exit 1
fi
# core file size
