aboutsummaryrefslogtreecommitdiff
path: root/libtrivfs/io-stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/io-stat.c')
-rw-r--r--libtrivfs/io-stat.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libtrivfs/io-stat.c b/libtrivfs/io-stat.c
index aba8540a..6e430a22 100644
--- a/libtrivfs/io-stat.c
+++ b/libtrivfs/io-stat.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1993, 1994 Free Software Foundation
+ Copyright (C) 1993,94,96,2002 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -8,7 +8,7 @@ it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-The GNU Hurd is distributed in the hope that it will be useful,
+The GNU Hurd is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@@ -20,7 +20,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Written by Michael I. Bushnell. */
#include "priv.h"
-#include "io_S.h"
#include <unistd.h>
kern_return_t
@@ -37,15 +36,15 @@ trivfs_S_io_stat (struct trivfs_protid *cred,
if (!err)
{
- if (!trivfs_fsid)
+ if (! trivfs_fsid)
trivfs_fsid = getpid();
st->st_fstype = trivfs_fstype;
st->st_fsid = trivfs_fsid;
+ st->st_mode = (st->st_mode & ~S_IFMT & ~S_ITRANS) | S_IFCHR | S_IROOT;
trivfs_modify_stat (cred, st);
}
return err;
}
-