acpid/acpid-1.0.6.dif

24 lines
597 B
Plaintext

--- acpid.c.orig 2004-10-18 00:33:51.000000000 +0200
+++ acpid.c 2005-08-02 19:22:04.000000000 +0200
@@ -386,7 +386,8 @@
umask(0);
/* get outta the way */
- chdir("/");
+ if(chdir("/") < 0)
+ fprintf(stderr, "%s: chdir: %s\n", progname, strerror(errno));
return 0;
}
--- Makefile.orig 2004-10-18 00:54:28.000000000 +0200
+++ Makefile 2005-08-02 19:22:04.000000000 +0200
@@ -21,7 +21,7 @@
MAN8 = acpid.8 acpi_listen.8
MAN8GZ = $(MAN8:.8=.8.gz)
-CFLAGS = -Wall -Werror -g $(DEFS)
+CFLAGS = -Wall -Werror -g $(DEFS) $(EXTRA_CFLAGS)
DEFS = -DVERSION="\"$(VERSION)\""
all: $(PROGS)