projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dec82c
)
Fix check of executable name used for shutdown.
author
Davin McCall
<davmac@davmac.org>
Sat, 17 Nov 2018 09:58:22 +0000
(09:58 +0000)
committer
Davin McCall
<davmac@davmac.org>
Sat, 17 Nov 2018 09:58:22 +0000
(09:58 +0000)
src/shutdown.cc
patch
|
blob
|
history
diff --git
a/src/shutdown.cc
b/src/shutdown.cc
index d669d6b451d56e5146aa261b36067f4d8ceb1331..a04598fbfc94fbf763d241d5df3fb41b554f7ea0 100644
(file)
--- a/
src/shutdown.cc
+++ b/
src/shutdown.cc
@@
-250,7
+250,7
@@
int main(int argc, char **argv)
auto shutdown_type = shutdown_type_t::POWEROFF;
const char *execname = base_name(argv[0]);
- if (strcmp(execname, "reboot")) {
+ if (strcmp(execname, "reboot")
== 0
) {
shutdown_type = shutdown_type_t::REBOOT;
}