summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Burns <burnsra@gmail.com>2012-12-09 09:35:58 -0500
committerRobert Burns <burnsra@gmail.com>2012-12-09 09:35:58 -0500
commit24bd5d4b79a1a75e14ca5c213679bd42b211714e (patch)
tree011192069d7eb2bd38c6201d72524b46ef6b133b
parentc95c6109f5780a938deea0797b3a0ec57b2af2ca (diff)
downloaddevice_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
-rwxr-xr-xlibcamera/SecCameraHWInterface.cpp3
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;