]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Read the contents of the snapshot files properly
authorEnji Cooper <ngie@FreeBSD.org>
Fri, 13 May 2016 10:52:02 +0000 (10:52 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Fri, 13 May 2016 10:52:02 +0000 (10:52 +0000)
commit32855711ef288b3c39cc6ab93f7778d463f434b7
treea3d8fd3a2359440ded30575ead73c5baa810eab8
parentabb14a540f7514b298095c480b75d6d355c97730
Read the contents of the snapshot files properly

- Use fgetln instead of fgets; localize complexity related to fgetln(3)
  inside the loop.
- Skip over blank lines.
- Skip over lines (properly) that start with a "#"

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
lib/libc/tests/nss/testutil.h