Fix default modes
This commit is contained in:
parent
0a42f0c625
commit
d18fd120ed
@ -1,6 +1,10 @@
|
||||
ChangeLog for davfs2
|
||||
--------------------
|
||||
|
||||
2013-08-12 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* cache.c, defaults.h:
|
||||
Fix default modes.
|
||||
|
||||
2013-08-12 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* cache.c, mount_davfs.c;
|
||||
Make default access modes 755 and 644.
|
||||
|
@ -587,8 +587,8 @@ dav_init_cache(const dav_args *args, const char *mpoint)
|
||||
default_uid = args->fsuid;
|
||||
default_gid = args->fsgid;
|
||||
|
||||
default_file_mode = args->file_mode | S_IFREG;
|
||||
default_dir_mode = args->dir_mode | S_IFDIR;
|
||||
default_file_mode = args->file_mode;
|
||||
default_dir_mode = args->dir_mode;
|
||||
|
||||
table_size = args->table_size;
|
||||
table = xcalloc(table_size, sizeof(*table));
|
||||
@ -1964,6 +1964,7 @@ new_node(dav_node *parent, mode_t mode)
|
||||
node->dirty = 0;
|
||||
node->uid = default_uid;
|
||||
node->gid = default_gid;
|
||||
node->mode = mode;
|
||||
|
||||
if (debug)
|
||||
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "new node: %p->%p",
|
||||
|
@ -109,11 +109,11 @@
|
||||
|
||||
/* Mode of directories.
|
||||
May be overridden by command line or fstab. */
|
||||
#define DAV_DIR_MODE (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
|
||||
#define DAV_DIR_MODE (S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
|
||||
|
||||
/* Mode of regular files.
|
||||
May be overridden by command line or fstab. */
|
||||
#define DAV_FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
|
||||
#define DAV_FILE_MODE (S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
|
||||
|
||||
|
||||
/* WebDAV */
|
||||
|
Loading…
Reference in New Issue
Block a user