瀏覽代碼

* Display conf settings from binary with -v option

svn: 1411
Bryan Drewery 21 年之前
父節點
當前提交
d73d03d448
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main.c

+ 4 - 0
src/main.c

@@ -364,6 +364,10 @@ static void dtx_arg(int argc, char *argv[])
 
 
         egg_strftime(date, sizeof date, "%c %Z", gmtime(&buildts));
         egg_strftime(date, sizeof date, "%c %Z", gmtime(&buildts));
 	printf("%s\nBuild Date: %s (%lu)\n", version, date, buildts);
 	printf("%s\nBuild Date: %s (%lu)\n", version, date, buildts);
+        if (settings.uname[0]) {
+          sdebug++;
+          bin_to_conf();
+        }
 	exit(0);
 	exit(0);
       }
       }
 #ifdef LEAF
 #ifdef LEAF