This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
apmud/apmud-1.0.0-open-mode.patch
2007-08-22 13:50:35 +00:00

11 lines
415 B
Diff

--- apmud/pmud.c.orig 2007-08-22 14:47:58.000000000 +0100
+++ apmud/pmud.c 2007-08-22 14:48:58.000000000 +0100
@@ -1494,7 +1494,7 @@ static void do_signal(int signum)
static int do_sigpower(char level)
{
- int fd = open(POWERSTATUS_FILE, O_RDWR|O_TRUNC|O_CREAT);
+ int fd = open(POWERSTATUS_FILE, O_RDWR|O_TRUNC|O_CREAT, 0644);
if(fd < 0)
{
syslog(LOG_ALERT, "open of %s failed (%m) reverting to sleep",