[f-spot/FSPOT_0_6_0_STABLE] fix permissions on file creation



commit b993dd0e9aa73a27c21b6eebda118b8e105657ff
Author: Stephane Delcroix <stephane delcroix org>
Date:   Mon Sep 28 14:26:55 2009 +0200

    fix permissions on file creation

 src/GPhotoCamera.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/GPhotoCamera.cs b/src/GPhotoCamera.cs
index 4486bcc..776cc82 100644
--- a/src/GPhotoCamera.cs
+++ b/src/GPhotoCamera.cs
@@ -217,7 +217,7 @@ public class GPhotoCamera
 		//but using gp_file_new_from_fd doesn't move the files to memory
 		if (camera_abilities.port != PortType.Disk) {
 			GPhotoCameraFile selected_file = (GPhotoCameraFile) files [index];		
-			using (var f = new CameraFile (Syscall.open (filename, OpenFlags.O_CREAT|OpenFlags.O_RDWR, FilePermissions.ALLPERMS))) {
+			using (var f = new CameraFile (Syscall.open (filename, OpenFlags.O_CREAT|OpenFlags.O_RDWR, FilePermissions.DEFFILEMODE))) {
 				camera.GetFile (selected_file.Directory, selected_file.FileName, CameraFileType.Normal, f, context);
 			}
 			return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]