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 /main.c | |
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.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, |