From bd659977c224973f74e498cd3f6fe9c4a6e70b63 Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 13 Aug 2006 14:40:28 +0000 Subject: [PATCH] don't create image files with executable bit set --- ntfsprogs/ntfsclone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 4e79ad8f..fdf80f3c 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -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)