runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 9fa5fbda992196f476f2f64314a2c8a3605e241b
parent d28ac104184c045472c4f127665944a9cd7d522a
Author: Gerrit Pape <pape@smarden.org>
Date:   Sun, 20 Apr 2003 18:12:44 +0000

minor bugfix.

Diffstat:
Msrc/Makefile | 2+-
Msrc/svlogd.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile @@ -66,7 +66,7 @@ utmpset.o: compile utmpset.c runsvchdir.o: compile runsvchdir.c ./compile runsvchdir.c -svlogd.o: compile svlogd.c +svlogd.o: compile sysdeps svlogd.c ./compile svlogd.c diff --git a/src/svlogd.c b/src/svlogd.c @@ -347,7 +347,7 @@ int logdir_open(struct logdir *ld, const char *fn) { /* open current */ if ((i =stat("current", &st)) != -1) { - if (st.st_size && ((st.st_mode & S_IRWXU) != S_IXUSR)) { + if (st.st_size && ! (st.st_mode & S_IXUSR)) { ld->fnsave[25] ='.'; ld->fnsave[26] ='u'; ld->fnsave[27] =0; do { taia_now(&now);