FreeBSD Bugzilla – Attachment 212605 Details for
Bug 244967
pw: userdel will delete a home directory not owned by the user (if it is empty)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to pw(8)
patch.diff (text/plain), 473 bytes, created by
Eric Hanneken
on 2020-03-22 04:24:24 UTC
(
hide
)
Description:
Patch to pw(8)
Filename:
MIME Type:
Creator:
Eric Hanneken
Created:
2020-03-22 04:24:24 UTC
Size:
473 bytes
patch
obsolete
>Index: usr.sbin/pw/rm_r.c >=================================================================== >--- usr.sbin/pw/rm_r.c (revision 359195) >+++ usr.sbin/pw/rm_r.c (working copy) >@@ -71,5 +71,8 @@ > closedir(d); > if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0) > return; >- unlinkat(rootfd, path, S_ISDIR(st.st_mode) ? AT_REMOVEDIR : 0); >+ if (S_ISLNK(st.st_mode)) >+ unlinkat(rootfd, path, 0); >+ else if (st.st_uid == uid) >+ unlinkat(rootfd, path, AT_REMOVEDIR); > }
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 244967
:
212604
| 212605