~ubuntu-branches/ubuntu/oneiric/notecase/oneiric

« back to all changes in this revision

Viewing changes to src/lib/FormatIOExecutable.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Van Wambeke
  • Date: 2008-05-29 20:20:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080529202017-kp2a07u83prpz0id
Tags: 1.9.1-0ubuntu1
New Upstream Release (LP: #230041)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <stdio.h>      //fopen
16
16
#include <glib.h>
17
17
#include <gtk/gtk.h>
 
18
#include <string.h>
18
19
 
19
20
#ifdef _WIN32
20
21
 #include <io.h>
174
175
        fclose(pOut);
175
176
 
176
177
#ifndef _WIN32
177
 
        //set default file permission
178
 
        mode_t mode = S_IRUSR|S_IWUSR|S_IXUSR; //0x0700
179
 
        chmod(szFile, mode); 
 
178
        //set default file permission (note that chmod(755) would faild for me)
 
179
        mode_t mode = S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IROTH; //0x0744
 
180
        chmod(szFile, mode);
180
181
#endif
181
182
 
 
183
 
182
184
        return DOC_SAVE_OK;
183
185
}
184
186