Przeglądaj źródła

Support comments on config file

Héctor García 10 lat temu
rodzic
commit
8c7939a4cf
2 zmienionych plików z 7 dodań i 0 usunięć
  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);