[augeas-devel] augeas: master - * src/augtool.c: allow comments starting with '#'

David Lutterkort lutter at fedoraproject.org
Mon Jun 1 19:43:41 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=ce83a689553385d6f2ff30854844b25da0bcd6ed
Commit:        ce83a689553385d6f2ff30854844b25da0bcd6ed
Parent:        69bd7421486b237e88462e898845015dfd1e0135
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Mon Jun 1 12:43:17 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Mon Jun 1 12:43:17 2009 -0700

* src/augtool.c: allow comments starting with '#'

---
 src/augtool.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/augtool.c b/src/augtool.c
index c1ac383..cb234ff 100644
--- a/src/augtool.c
+++ b/src/augtool.c
@@ -648,6 +648,8 @@ static int main_loop(void) {
             printf("\n");
             return ret;
         }
+        if (line[0] == '#')
+            continue;
 
         dup_line = strdup(line);
         if (dup_line == NULL) {




More information about the augeas-devel mailing list