summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianluca Guida <glguida@gmail.com>2005-06-13 00:22:11 +0000
committerGianluca Guida <glguida@gmail.com>2005-06-13 00:22:11 +0000
commitecdca81b8c88107d4a23dd412f603d5b8ddd43bf (patch)
tree8ccf7ffe1be318f5f91ed499cd60c67b2c69e83e
parenta9eee2c50ad67e91c786e6bfaf3cab22daba4b67 (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--ChangeLog6
-rw-r--r--main.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 00d5d05..0df1f3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/main.c b/main.c
index 999ead9..c33b065 100644
--- a/main.c
+++ b/main.c
@@ -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,