|
|
Message-Id: <1383636861-7535-2-git-send-email-mforney@mforney.org>
Date: Mon, 4 Nov 2013 23:34:21 -0800
From: Michael Forney <mforney@...rney.org>
To: musl@...ts.openwall.com
Subject: [PATCH 2/2] putgrent: Add missing newline
---
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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.