1 |
/* Root usermux node |
/* Root usermux node |
2 |
|
|
3 |
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
Copyright (C) 1997,98,99,2000,02 Free Software Foundation, Inc. |
4 |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
Written by Miles Bader <miles@gnu.org> |
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
7 |
The GNU Hurd is free software; you can redistribute it and/or |
The GNU Hurd is free software; you can redistribute it and/or |
480 |
netfs_attempt_chmod (struct iouser *cred, struct node *node, mode_t mode) |
netfs_attempt_chmod (struct iouser *cred, struct node *node, mode_t mode) |
481 |
{ |
{ |
482 |
mode &= ~S_ITRANS; |
mode &= ~S_ITRANS; |
483 |
|
if ((mode & S_IFMT) == 0) |
484 |
|
mode |= (node->nn_stat.st_mode & S_IFMT); |
485 |
if (node->nn->name || ((mode & S_IFMT) != (node->nn_stat.st_mode & S_IFMT))) |
if (node->nn->name || ((mode & S_IFMT) != (node->nn_stat.st_mode & S_IFMT))) |
486 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
487 |
else |
else |