--- src/tools.c 2005-10-26 07:02:34.000000000 +0000 +++ src/tools.c 2009-03-05 01:57:03.000000000 +0000 @@ -1723,7 +1723,7 @@ if(length < 0) length = strlen(content); - if((fd = open(filename, O_WRONLY | O_BINARY | O_CREAT | O_TRUNC), 0644) < 0) + if((fd = open(filename, O_WRONLY | O_BINARY | O_CREAT | O_TRUNC, 0644), 0644) < 0) { xperror(filename); return -1;