inspection: Cleanup iteration over fstab entries in inspect_fs_unix.c
authorMatthew Booth <mbooth@redhat.com>
Fri, 25 Nov 2011 13:16:54 +0000 (13:16 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2011 12:25:06 +0000 (12:25 +0000)
commit35c8e4fa7f5c90cc8371028e2bfc0562272380e3
treead6fc631977792943e0b7ea9cbebf2cb43bee8a6
parent7c89d9ef6b37314fb55aabd0c389a9d652acdb0f
inspection: Cleanup iteration over fstab entries in inspect_fs_unix.c

Select non-comment labels using an augeas path to return the correct
nodes in the first instance, rather than applying a regular expression
to all results.

There is no functional change to the code.

RWMJ:
 - Rebased to current HEAD.
 - Move variable decls to top of function.
 - Some whitespace changes.
 - Remove check for errors from snprintf since it can never happen.
src/inspect_fs_unix.c