I figure since the error message is incorrect (the comment is not a
"rule" that needs to be skipped), the correct solution is to filter out
comments before trying to parse.  I haven't tested this (not sure how
to), but this patch should cause it to skip comments.  I just moved the
check for comment characters from after the check for too-long-lines to
before it.

** Attachment added: "udev_long_comments.diff"
   http://librarian.launchpad.net/4214344/udev_long_comments.diff

-- 
libsane.rules: Line 540 too long, can not be parsed by udev
https://launchpad.net/bugs/56317

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to