瀏覽代碼

Support comments on config file

Héctor García 10 年之前
父節點
當前提交
8c7939a4cf
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 4 0
      ChangeLog
  2. 3 0
      src/mssh.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2014-01-15  Héctor García  <[email protected]>
+
+    Added patch from Oscar Fernandez to support comments on configuration archive
+
 2014-01-15  Héctor García  <[email protected]>
 
     Bumped version to 1.3 gtk2 deprecated symbols free

+ 3 - 0
src/mssh.c

@@ -121,6 +121,9 @@ GData **parse_aliases(char *conffile)
         if(strcmp(line, "") == 0)
             continue;
 
+        if( *line == '#')
+            continue;
+
         if((sep = strchr(line, ':')) == NULL)
         {
             printf("Line %d: Failed to parse line '%s'\n", lineno, line);