SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue