From 8fe32456d967700bd8b276addd3938b086649854 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 30 May 2007 01:01:24 +0000 Subject: [PATCH] bug fix --- src/theme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme.c b/src/theme.c index 2059eb1..6f080c8 100644 --- a/src/theme.c +++ b/src/theme.c @@ -223,9 +223,9 @@ static int gzopen_frontend(const char *path, int oflags, int mode) int fd; const char *gzflags; - if (oflags & O_RDONLY) + if ((oflags & O_ACCMODE) == O_RDONLY) gzflags = "rb"; - else if (oflags & O_WRONLY) + else if ((oflags & O_ACCMODE) == O_WRONLY) gzflags = "wb"; else g_assert_not_reached(); -- 2.39.2