/[hurd]/hurd/usermux/mux.c
ViewVC logotype

Diff of /hurd/usermux/mux.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by thomas, Tue Jul 18 21:36:39 2000 UTC revision 1.7 by roland, Mon May 13 22:33:08 2002 UTC
# Line 1  Line 1 
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
# Line 480  error_t Line 480  error_t
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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26