From: Michael Forney <mforney@mforney.org>
To: musl@lists.openwall.com
Subject: [PATCH 2/2] putgrent: Add missing newline
Date: Mon, 4 Nov 2013 23:34:21 -0800 [thread overview]
Message-ID: <1383636861-7535-2-git-send-email-mforney@mforney.org> (raw)
In-Reply-To: <1383636861-7535-1-git-send-email-mforney@mforney.org>
---
src/passwd/putgrent.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/passwd/putgrent.c b/src/passwd/putgrent.c
index b34f325..6f26c05 100644
--- a/src/passwd/putgrent.c
+++ b/src/passwd/putgrent.c
@@ -9,6 +9,7 @@ int putgrent(const struct group *gr, FILE *f)
if ((r = fprintf(f, "%s:%s:%d:", gr->gr_name, gr->gr_passwd, gr->gr_gid))<0) goto done;
if (gr->gr_mem) for (i=0; gr->gr_mem[i]; i++)
if ((r = fprintf(f, "%s%s", i?",":"", gr->gr_mem[i]))<0) goto done;
+ r = fputc('\n', f);
done:
funlockfile(f);
return r<0 ? -1 : 0;
--
1.8.4.2
prev parent reply other threads:[~2013-11-05 7:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 7:34 [PATCH 1/2] putgrent: Stop writing output on first failure Michael Forney
2013-11-05 7:34 ` Michael Forney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383636861-7535-2-git-send-email-mforney@mforney.org \
--to=mforney@mforney.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).