https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244967

Eric Hanneken <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #212604|0                           |1
        is obsolete|                            |

--- Comment #4 from Eric Hanneken <[email protected]> ---
Comment on attachment 212604
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212604
Patch to pw(8)

>Index: rm_r.c
>===================================================================
>--- rm_r.c     (revision 359195)
>+++ 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 are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to