diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ImageMetaData.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ImageMetaData.cxx b/src/ImageMetaData.cxx index 06a16fa..09acbf9 100644 --- a/src/ImageMetaData.cxx +++ b/src/ImageMetaData.cxx @@ -262,7 +262,7 @@ ImageMetaData::save_image_jpgcom(char *in_img, char *out_img) { } if (!err) { - int out_fd = open(out_img, O_WRONLY|O_TRUNC); + int out_fd = open(out_img, O_WRONLY|O_TRUNC|O_CREAT, S_IRUSR|S_IWUSR); lseek(tmp_fd, 0, SEEK_SET); |