~ubuntu-branches/ubuntu/quantal/shotwell/quantal

« back to all changes in this revision

Viewing changes to src/LibraryFiles.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-02-21 13:52:58 UTC
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20120221135258-ao9jiib5qicomq7q
Tags: upstream-0.11.92
ImportĀ upstreamĀ versionĀ 0.11.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2009-2011 Yorba Foundation
 
1
/* Copyright 2009-2012 Yorba Foundation
2
2
 *
3
3
 * This software is licensed under the GNU Lesser General Public License
4
4
 * (version 2.1 or later).  See the COPYING file in this distribution. 
87
87
    
88
88
    // Make file writable by getting current Unix mode and or it with 600 (user read/write)
89
89
    try {
90
 
        FileInfo info = dest.query_info(FILE_ATTRIBUTE_UNIX_MODE, FileQueryInfoFlags.NONE);
91
 
        uint32 mode = info.get_attribute_uint32(FILE_ATTRIBUTE_UNIX_MODE) | 0600;
92
 
        if (!dest.set_attribute_uint32(FILE_ATTRIBUTE_UNIX_MODE, mode, FileQueryInfoFlags.NONE)) {
 
90
        FileInfo info = dest.query_info(FileAttribute.UNIX_MODE, FileQueryInfoFlags.NONE);
 
91
        uint32 mode = info.get_attribute_uint32(FileAttribute.UNIX_MODE) | 0600;
 
92
        if (!dest.set_attribute_uint32(FileAttribute.UNIX_MODE, mode, FileQueryInfoFlags.NONE)) {
93
93
            warning("Could not make file writable");
94
94
        }
95
95
    } catch (Error err) {