Summary: | "pw userdel" can go into an infinite loop | ||
---|---|---|---|
Product: | Base System | Reporter: | Voradesh Yenbut <yenbut> |
Component: | bin | Assignee: | Devin Teske <dteske> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | brd, mjg, ngie |
Priority: | Normal | Flags: | ngie:
mfc-stable10+
bugmeister: mfc-stable9? ngie: mfc-stable8- |
Version: | 10.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Voradesh Yenbut
2014-06-26 22:46:10 UTC
I agree with problem statement and idea for the fix, but it can be done slightly prettier. Care to rewrite the patch with a for loop instead? A commit references this bug: Author: mjg Date: Fri Jun 27 18:51:19 UTC 2014 New revision: 267970 URL: http://svnweb.freebsd.org/changeset/base/267970 Log: pw: fix up deletion of users from groups Previuosly given 'foo,bar' members, removing 'foo' would result in an infinite loop. PR: 191427 Submitted by: Voradesh Yenbut <yenbut cs.washington.edu> MFC after: 1 week Changes: head/usr.sbin/pw/pw_user.c Committed, thanks. Can you MFC this before 10.1 please? A commit references this bug: Author: dteske Date: Fri Sep 26 23:01:28 UTC 2014 New revision: 272192 URL: https://svnweb.freebsd.org/changeset/base/272192 Log: MFC revisions 262864-262865, 263114, 267970: r262864: Stop pw(8) from segfaulting when given certain input (julian) r262865: Part 2 of bug 187310 (julian) r263114: Fix pw(8) edge-case deletion of group "username" on userdel r267970: Fix infinite-loop during deletion of users from groups PR: 187310, 169471, 191427 Submitted by: Voradesh Yenbut, Alexander Pyhalov, Kim Shrier Obtained from: bug Approved by: re (gjb) Changes: _U stable/10/ stable/10/usr.sbin/pw/pw_group.c stable/10/usr.sbin/pw/pw_user.c The fixes haven't been committed to stable/9 yet, as noted in bug 169471 comment # 4. Reassigning to dteske for analysis. Please feel free to close this bug if you feel this commit shouldn't be MFCed to stable/9. Why is this assigned to me? |