mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
don't create image files with executable bit set
This commit is contained in:
parent
0dae4a9c77
commit
bd659977c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user