/* the database didn't exist, so we create the
directory then the .db */
db->close (db, 0);
- rv = g_mkdir_with_parents (dirname, 0777);
+ rv = g_mkdir_with_parents (dirname, 0700);
if (rv == -1 && errno != EEXIST) {
g_warning ("failed to make directory %s: %s", dirname, g_strerror (errno));
g_free (dirname);
/* the databade didn't exist, so we create the
directory then the .db */
- rv = g_mkdir_with_parents (dirname, 0777);
+ rv = g_mkdir_with_parents (dirname, 0700);
if (rv == -1 && errno != EEXIST) {
g_warning ("failed to make directory %s: %s", dirname, g_strerror (errno));
g_free (dirname);
/* the database didn't exist, so we create the
directory then the .vcf file */
- rv = g_mkdir_with_parents (dirname, 0777);
+ rv = g_mkdir_with_parents (dirname, 0700);
if (rv == -1 && errno != EEXIST) {
g_warning ("failed to make directory %s: %s", dirname, g_strerror (errno));
if (errno == EACCES || errno == EPERM)
savename = camel_file_util_savename(file);
dirname = g_path_get_dirname(savename);
- g_mkdir_with_parents(dirname, 0777);
+ g_mkdir_with_parents(dirname, 0700);
g_free(dirname);
fp = g_fopen(savename, "wb");
if (fp != NULL) {
gint fd, i;
dirname = g_path_get_dirname (filename);
- if (g_mkdir_with_parents (dirname, 0777) == -1) {
+ if (g_mkdir_with_parents (dirname, 0700) == -1) {
g_free (dirname);
return NULL;
}
folder->summary = camel_imap4_summary_new (folder);
imap4_folder->cachedir = imap4_store_build_filename (store, folder->full_name);
- g_mkdir_with_parents (imap4_folder->cachedir, 0777);
+ g_mkdir_with_parents (imap4_folder->cachedir, 0700);
imap4_folder->cache = camel_data_cache_new (imap4_folder->cachedir, 0, NULL);
}
/* need to create the dir heirarchy */
- if (g_mkdir_with_parents (path, 0777) == -1 && errno != EEXIST) {
+ if (g_mkdir_with_parents (path, 0700) == -1 && errno != EEXIST) {
camel_exception_setv (ex, CAMEL_EXCEPTION_STORE_NO_FOLDER,
_("Cannot get folder: %s: %s"),
path, g_strerror (errno));
g_free (basename);
dirname = g_path_get_dirname(name);
- if (g_mkdir_with_parents(dirname, 0777) == -1 && errno != EEXIST) {
+ if (g_mkdir_with_parents(dirname, 0700) == -1 && errno != EEXIST) {
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM,
_("Cannot create folder '%s': %s"),
folder_name, g_strerror (errno));
path = camel_local_store_get_full_path(store, name);
dir = g_path_get_dirname(path);
- if (g_mkdir_with_parents(dir, 0777) == -1 && errno != EEXIST) {
+ if (g_mkdir_with_parents(dir, 0700) == -1 && errno != EEXIST) {
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot create directory '%s': %s."),
dir, g_strerror(errno));
newibex = camel_local_store_get_meta_path(store, new, ".ibex");
newdir = g_path_get_dirname(newibex);
- if (g_mkdir_with_parents(newdir, 0777) == -1) {
+ if (g_mkdir_with_parents(newdir, 0700) == -1) {
if (errno != EEXIST) {
camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM,
_("Could not rename '%s': '%s': %s"),
if (root == NULL)
return NULL;
- g_mkdir_with_parents(root, 0777);
+ g_mkdir_with_parents(root, 0700);
key = camel_file_util_safe_filename(full_name);
path = g_strdup_printf("%s/%s%s", root, key, ext);
g_free(key);
return NULL;
/* If this doesn't work, stuff wont save, but let it continue anyway */
- g_mkdir_with_parents (root, 0777);
+ g_mkdir_with_parents (root, 0700);
folder = (CamelFolder *) camel_object_new (CAMEL_NNTP_FOLDER_TYPE);
nntp_folder = (CamelNNTPFolder *)folder;