summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-18 19:25:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-18 19:25:51 +0000
commit0080e3042c8956a7a65d623bbfbd83c603e2cf74 (patch)
treea7ab711be08f0106cfdc8859f88f0b82352ed0e7 /libtrivfs
parente81ec2dce5c887d654bfbda04e2883166bc6a32c (diff)
Formerly io-stat.c.~2~
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-stat.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libtrivfs/io-stat.c b/libtrivfs/io-stat.c
index 57d6b34f..d64a505b 100644
--- a/libtrivfs/io-stat.c
+++ b/libtrivfs/io-stat.c
@@ -19,8 +19,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Written by Michael I. Bushnell. */
+#include "priv.h"
+
error_t
trivfs_S_io_stat (struct protid *cred,
struct stat *st)
{
- io_stat (
+ error_t err;
+ if (!cred)
+ return EOPNOTSUPP;
+
+ err = io_stat (cred->realnode, st);
+ if (!err)
+ trivfs_modify_stat (st);
+ return err;
+}
+