--- layout/support.c.orig 2007-08-17 18:44:14.000000000 +0200 +++ layout/support.c 2010-01-04 20:02:01.000000000 +0100 @@ -71,7 +71,7 @@ gstrdel(extension); if (gmstrcpy(&mirror, tmp_file, "/", entry->d_name, 0) == -1) continue; - if ((descriptor = open(mirror, O_WRONLY | O_CREAT)) == -1) + if ((descriptor = open(mirror, O_WRONLY | O_CREAT, 0777)) == -1) continue; if (close(descriptor) == -1) continue;