SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,15 @@
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc/group?rev=1.99&content-type=text/x-cvsweb-markup
_shutdown group now allows to use /sbin/shutdown
Index: xfce4-session/xfsm-shutdown-fallback.c
--- xfce4-session/xfsm-shutdown-fallback.c.orig
+++ xfce4-session/xfsm-shutdown-fallback.c
@@ -241,7 +241,7 @@ xfsm_shutdown_fallback_user_is_operator (void)
struct group *gr;
gr = getgrgid (groups[i]);
- if (gr != NULL && strncmp(gr->gr_name, "operator", 8) == 0)
+ if (gr != NULL && strncmp(gr->gr_name, "_shutdown", 9) == 0)
{
is_operator = TRUE;
break;