don't create image files with executable bit set

This commit is contained in:
szaka 2006-08-13 14:40:28 +00:00
parent 0dae4a9c77
commit bd659977c2

View File

@ -1671,7 +1671,7 @@ int main(int argc, char **argv)
flags |= O_EXCL;
}
if ((fd_out = open(opt.output, flags, S_IRWXU)) == -1)
if ((fd_out = open(opt.output, flags, S_IRUSR | S_IWUSR)) == -1)
perr_exit("Opening file '%s' failed", opt.output);
if (!opt.save_image)