projects
/
dana
/
obconf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e61e67a
)
bug fix
author
Dana Jansens
<danakj@orodu.net>
Wed, 30 May 2007 01:01:24 +0000
(
01:01
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 30 May 2007 01:01:24 +0000
(
01:01
+0000)
src/theme.c
patch
|
blob
|
history
diff --git
a/src/theme.c
b/src/theme.c
index 2059eb1ac8b9343188bb36a8c35f148c5155aa4d..6f080c8396314aad61968e2077285a0878e2869a 100644
(file)
--- 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();