diff options
Diffstat (limited to 'hostmux/mux.c')
-rw-r--r-- | hostmux/mux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hostmux/mux.c b/hostmux/mux.c index 0d5906c4..4f03cc12 100644 --- a/hostmux/mux.c +++ b/hostmux/mux.c @@ -339,9 +339,9 @@ lookup_host (struct hostmux *mux, const char *host, struct node **node) if (was_cached) return 0; - + h_err = getaddrinfo (host, NULL, &hints, &ai); - if (! h_err) + if (! h_err) { h_err = lookup_addrinfo (mux, host, ai, node); freeaddrinfo (ai); @@ -440,6 +440,8 @@ error_t netfs_attempt_chmod (struct iouser *cred, struct node *node, mode_t mode) { mode &= ~S_ITRANS; + if ((mode & S_IFMT) == 0) + mode |= (node->nn_stat.st_mode & S_IFMT); if (node->nn->name || ((mode & S_IFMT) != (node->nn_stat.st_mode & S_IFMT))) return EOPNOTSUPP; else |