FreeBSD Bugzilla – Attachment 147735 Details for
Bug 187189
[PATCH] pw(1): pw groupmod groupname -g ### creates duplicate groups
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Reformatted gr_util.c patch (tested)
gr_util.c.diff (text/plain), 578 bytes, created by
Adam McDougall
on 2014-09-27 20:16:10 UTC
(
hide
)
Description:
Reformatted gr_util.c patch (tested)
Filename:
MIME Type:
Creator:
Adam McDougall
Created:
2014-09-27 20:16:10 UTC
Size:
578 bytes
patch
obsolete
>--- lib/libutil/gr_util.c.orig 2014-09-27 15:57:47.937525613 -0400 >+++ lib/libutil/gr_util.c 2014-09-27 16:09:44.837056173 -0400 >@@ -170,14 +170,21 @@ > size_t len; > int eof, readlen; > >- sgr = gr; >+ if (old_gr == NULL && gr == NULL) >+ return(-1); >+ >+ sgr = old_gr; >+ /* deleting a group */ > if (gr == NULL) { > line = NULL; >- if (old_gr == NULL) >+ } else { >+ if ((line = gr_make(gr)) == NULL) > return (-1); >- sgr = old_gr; >- } else if ((line = gr_make(gr)) == NULL) >- return (-1); >+ } >+ >+ /* adding a group */ >+ if (sgr == NULL) >+ sgr = gr; > > eof = 0; > len = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187189
:
147383
| 147735