Created attachment 253324 [details] with -m /usr/local/etc/rc.d/gitea had a new parameter: gitea_configcheck_enable:="YES". ``` grep -A 10 gitea_prestart /usr/local/etc/rc.d/gitea gitea_prestart() { if checkyesno gitea_configcheck_enable; then if su -m ${gitea_user} -c "/usr/local/sbin/${name} doctor check >/dev/null"; then else echo "cannot start ${name} because of configuration errors. Run" >&2 echo " su -m git -c '${name} doctor check'" >&2 echo "for further details" return 1 fi fi } ``` I found some error message for `su -m`, message showed below
Created attachment 253325 [details] without -m If I removed `-m` for su command, you can find the output message in png (name: without -m) Please fix `su -m` to `su` for /usr/local/etc/rc.d/gitea. thank you.
Let me look into it, but I think you are correct.
I've added the change to this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281949
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c1cc8c5f75f6e85e544498d7dc52e6fe5e2be8e0 commit c1cc8c5f75f6e85e544498d7dc52e6fe5e2be8e0 Author: Stefan Bethke <stb@lassitu.de> AuthorDate: 2024-10-09 22:25:16 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-10-09 22:29:50 +0000 www/gitea: Update 1.22.2 → 1.22.3 (fixes security vulnerability) Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.22.3 `su -m` cause checking authorized_keys in wrong place - replace it with `su`. PR: 281949 281264 MFH: 2024Q4 www/gitea/Makefile | 2 +- www/gitea/distinfo | 6 +++--- www/gitea/files/gitea.in | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
A commit in branch 2024Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=85650cc5aa90190d9bc5865d83921a0915abddda commit 85650cc5aa90190d9bc5865d83921a0915abddda Author: Stefan Bethke <stb@lassitu.de> AuthorDate: 2024-10-09 22:25:16 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-10-09 22:35:44 +0000 www/gitea: Update 1.22.2 → 1.22.3 (fixes security vulnerability) Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.22.3 `su -m` cause checking authorized_keys in wrong place - replace it with `su`. PR: 281949 281264 MFH: 2024Q4 (cherry picked from commit c1cc8c5f75f6e85e544498d7dc52e6fe5e2be8e0) www/gitea/Makefile | 2 +- www/gitea/distinfo | 6 +++--- www/gitea/files/gitea.in | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
Committed, thanks.