From 77e90afb05ccde00fd59e152c3296f2994d60d6d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 20 May 2004 01:06:52 +0000 Subject: Linux fixes --- src/posix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/posix.c') diff --git a/src/posix.c b/src/posix.c index 91bb43a..14a9a2d 100644 --- a/src/posix.c +++ b/src/posix.c @@ -94,7 +94,10 @@ void setFileAttributes(fchar_t* filename, uint32 flags) } else { - if(chmod(filename, st.st_mode & ~(S_IWUSR | S_IWGRP | S_IWOTH)) == -1) + st.st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH); + fprintf(stderr, "mode: %x", st.st_mode); + + if(chmod(filename, st.st_mode) == -1) warn("couldn't set file attributes for: " FC_PRINTF, encoded); } } -- cgit v1.2.3