summaryrefslogtreecommitdiff
path: root/src/shutdown/s6-linux-init-shutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shutdown/s6-linux-init-shutdown.c')
-rw-r--r--src/shutdown/s6-linux-init-shutdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shutdown/s6-linux-init-shutdown.c b/src/shutdown/s6-linux-init-shutdown.c
index 2e81c3b..011abef 100644
--- a/src/shutdown/s6-linux-init-shutdown.c
+++ b/src/shutdown/s6-linux-init-shutdown.c
@@ -291,10 +291,10 @@ int main (int argc, char const *const *argv)
if (what == 1) what = subwhat ;
else strerr_dieusage(100, USAGE) ;
}
- if (geteuid())
+ if (!hpr_send("", 0))
{
errno = EPERM ;
- strerr_diefu1sys(111, "shutdown") ;
+ strerr_diefu1sys(111, "talk to shutdownd") ;
}
if (doactl) access_control() ;
if (doconfirm) hpr_confirm_hostname() ;