diff options
-rwxr-xr-x | libcamera/SecCameraHWInterface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp index 1f60d69..a1afb88 100755 --- a/libcamera/SecCameraHWInterface.cpp +++ b/libcamera/SecCameraHWInterface.cpp @@ -965,9 +965,10 @@ void CameraHardwareSec::save_postview(const char *fname, uint8_t *buf, uint32_t int nw; int cnt = 0; uint32_t written = 0; + mode_t mode = S_IRUSR | S_IWUSR; ALOGD("opening file [%s]\n", fname); - int fd = open(fname, O_RDWR | O_CREAT); + int fd = open(fname, O_RDWR | O_CREAT, mode); if (fd < 0) { ALOGE("failed to create file [%s]: %s", fname, strerror(errno)); return; |