Explorar o código

putgrent: Add missing newline

Michael Forney %!s(int64=11) %!d(string=hai) anos
pai
achega
3fd1acbfee
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/passwd/putgrent.c

+ 1 - 0
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;