putgrent: Stop writing output on first failure
authorMichael Forney <mforney@mforney.org>
Tue, 5 Nov 2013 07:34:20 +0000 (23:34 -0800)
committerRich Felker <dalias@aerifal.cx>
Sat, 23 Nov 2013 21:20:51 +0000 (16:20 -0500)
commita3b98a11a9b51801109ad46df2a44ee2ee03e37e
tree1a9e168069050f2cfea7d89c09e9f2b09df9007e
parentb300d5b7bd74070982da50d996773a2dd8156a01
putgrent: Stop writing output on first failure

This way, if an fprintf fails, we get an incomplete group entry rather
than a corrupted one.
src/passwd/putgrent.c