]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmon: redo remove backslash from end of line
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 27 Apr 2009 20:36:17 +0000 (13:36 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 27 Apr 2009 20:36:17 +0000 (13:36 -0700)
src/common/ConfUtils.cc

index 4ed99237820918c7475b9d580b77a564a6824ecd..50d73fcd59c27bf98da8a4fa2ff6917dc925126b 100644 (file)
@@ -552,12 +552,13 @@ bool ConfFile::_parse(char *filename, ConfSection **psection)
 
                for (i=0; i<len; i++) {
                        switch (buf[i]) {
-                       case '\\' :
                        case '\r' :
                                continue;
                        case '\n' :
-                               if (l > 0 && line[l-1] == '\\')
+                               if (l > 0 && line[l-1] == '\\') {
+                                       l--;
                                        continue;
+                               }
                                line[l] = '\0';
                                cl = new ConfLine();
                                parse_line(line, cl);