summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
Diffstat (limited to 'libcamera')
-rwxr-xr-xlibcamera/SecCameraHWInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp
index d66f12f..2d4999c 100755
--- a/libcamera/SecCameraHWInterface.cpp
+++ b/libcamera/SecCameraHWInterface.cpp
@@ -979,7 +979,7 @@ void CameraHardwareSec::save_postview(const char *fname, uint8_t *buf, uint32_t
uint32_t written = 0;
ALOGD("opening file [%s]\n", fname);
- int fd = open(fname, O_RDWR | O_CREAT);
+ int fd = open(fname, O_RDWR | O_CREAT, 0600);
if (fd < 0) {
ALOGE("failed to create file [%s]: %s", fname, strerror(errno));
return;