diff options
author | Robert Burns <burnsra@gmail.com> | 2012-12-09 09:35:58 -0500 |
---|---|---|
committer | Robert Burns <burnsra@gmail.com> | 2012-12-09 09:35:58 -0500 |
commit | 24bd5d4b79a1a75e14ca5c213679bd42b211714e (patch) | |
tree | 011192069d7eb2bd38c6201d72524b46ef6b133b /libcamera | |
parent | c95c6109f5780a938deea0797b3a0ec57b2af2ca (diff) | |
download | device_samsung_crespo-24bd5d4b79a1a75e14ca5c213679bd42b211714e.zip device_samsung_crespo-24bd5d4b79a1a75e14ca5c213679bd42b211714e.tar.gz device_samsung_crespo-24bd5d4b79a1a75e14ca5c213679bd42b211714e.tar.bz2 |
Fix for save_postview changes
- Add mode to file creation
Change-Id: I6100bae274798c7793ba1bf83af708a9c08e37a6
Diffstat (limited to 'libcamera')
-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; |