View | Details | Raw Unified | Return to bug 187189 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +12 lines)
Lines 170-183 gr_copy(int ffd, int tfd, const struct group *gr, struct group *old_gr) Link Here
170
  size_t len;
170
  size_t len;
171
  int eof, readlen;
171
  int eof, readlen;
172
172
173
  sgr = gr;
173
  if (old_gr == NULL && gr == NULL)
174
      return (-1);
175
176
  sgr = old_gr;
177
  /* deleting a group */
174
  if (gr == NULL) {
178
  if (gr == NULL) {
175
    line = NULL;
179
    line = NULL;
176
    if (old_gr == NULL)
180
  } else {
181
    if ((line = gr_make(gr)) == NULL)
177
      return (-1);
182
      return (-1);
178
    sgr = old_gr;
183
  }
179
  } else if ((line = gr_make(gr)) == NULL)
184
180
    return (-1);
185
  /* adding a group */
186
  if (sgr == NULL)
187
    sgr = gr;
181
188
182
  eof = 0;
189
  eof = 0;
183
  len = 0;
190
  len = 0;

Return to bug 187189