diff options
author | Gianluca Guida <glguida@gmail.com> | 2005-06-13 00:22:11 +0000 |
---|---|---|
committer | Gianluca Guida <glguida@gmail.com> | 2005-06-13 00:22:11 +0000 |
commit | ecdca81b8c88107d4a23dd412f603d5b8ddd43bf (patch) | |
tree | 8ccf7ffe1be318f5f91ed499cd60c67b2c69e83e | |
parent | a9eee2c50ad67e91c786e6bfaf3cab22daba4b67 (diff) |
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.
-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, |