diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | main.c | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2005-06-13 Gianluca Guida <glguida@gmail.com> + + * main.c (main): Set properly netfs_root_node permissions when + underlying node is not a file + Reported by Alfred M. Szmidt. + 2005-05-31 Gianluca Guida <glguida@gmail.com> * node.c (node_unlink_file): Use lookup to figure out whether a file @@ -117,12 +117,12 @@ main (int argc, char **argv) if (! S_ISDIR (underlying_node_stat.st_mode)) { if (underlying_node_stat.st_mode & S_IRUSR) - netfs_root_node->nn_stat.st_mode |= S_IRUSR; + netfs_root_node->nn_stat.st_mode |= S_IXUSR; if (underlying_node_stat.st_mode & S_IRGRP) - netfs_root_node->nn_stat.st_mode |= S_IRGRP; + netfs_root_node->nn_stat.st_mode |= S_IXGRP; if (underlying_node_stat.st_mode & S_IROTH) netfs_root_node->nn_stat.st_mode |= S_IXOTH; - } + } /* Update the timestamps of the root node. */ fshelp_touch (&netfs_root_node->nn_stat, |