彤彤 李 created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250
Project:Branches: Supernb/rtems:issue-5420-pwdgrp-bsd to rtems/rtos/rtems:main Author: 彤彤 李 This patch series reimplements the POSIX passwd and group entry APIs with BSD-licensed files-only implementations and removes the obsolete GPL passwd/group helper code. Summary: - Import the FreeBSD libc passwd/group sources under contrib as unchanged reference material. - Add a BSD-licensed RTEMS default passwd/group file initialization helper. - Reimplement the group database access routines in getgrent.c: - getgrent_r() - getgrnam_r() - getgrgid_r() - getgrent() - getgrnam() - getgrgid() - setgrent() - endgrent() - Reimplement the passwd database access routines in getpwent.c: - getpwent_r() - getpwnam_r() - getpwuid_r() - getpwent() - getpwnam() - getpwuid() - setpwent() - endpwent() - Preserve the existing RTEMS behavior of creating /etc, /etc/passwd, and /etc/group on demand. - Remove the obsolete pwdgrp.c and pwdgrp.h helper implementation. - Update getgroups() to handle the getpwuid_r() not-found case where the function returns zero with a NULL result pointer. - Update pwdgrp test documentation to refer to the new default file initialization helper. Validation performed on aarch64/zynqmp_qemu: - ./waf - psxpasswd01 - pwdgrp01 - pwdgrp02 All tests passed. The POSIX Users Guide documentation update mentioned in the issue is not included yet. I can add it to this MR after initial review, or submit it as a follow-up patch if preferred. Generative AI: I used ChatGPT to help plan the implementation, review errors, draft commit messages, and prepare the merge request description. I manually applied the changes, built the tree, ran the tests, and reviewed the final patch series. Related to #5420. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
