xenserver: Make BRCOMPATD_MEMLEAK_LOGFILE setting work.
authorBen Pfaff <blp@nicira.com>
Tue, 12 Jan 2010 18:57:12 +0000 (10:57 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 12 Jan 2010 22:28:01 +0000 (14:28 -0800)
Sometimes it's too bad that shell variables don't need declarations.

xenserver/etc_init.d_vswitch

index a8d5a388d66db1f4b8152b0e85e0146f318b6ffc..788c4289041a4d3bd9d56ad73d5c9bbe7b64c636 100755 (executable)
@@ -233,7 +233,7 @@ function start_brcompatd {
         logfile_file_opt="--log-file=$BRCOMPATD_LOGFILE"
     fi
     local leak_opt=""
-    if [ -n "$BRCOMPATD_MEMLEAK_LOG" ]; then
+    if [ -n "$BRCOMPATD_MEMLEAK_LOGFILE" ]; then
         leak_opt="--check-leaks=$BRCOMPATD_MEMLEAK_LOGFILE"
         if [ -e "$BRCOMPATD_MEMLEAK_LOGFILE" ]; then
             mv "$BRCOMPATD_MEMLEAK_LOGFILE" "$BRCOMPATD_MEMLEAK_LOGFILE.prev"