summaryrefslogtreecommitdiff
path: root/libdiskfs/io-stat.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-05 00:13:03 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-05 00:13:03 +0000
commit4e739407735755630c1ee8407285ed250fffca9c (patch)
tree135d2b58effc30a2d9aad64f71c94fb6e129f1d5 /libdiskfs/io-stat.c
parent393eeae98b0249b2050e925a7a4afd5f861059ac (diff)
Formerly io-stat.c.~3~
Diffstat (limited to 'libdiskfs/io-stat.c')
-rw-r--r--libdiskfs/io-stat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c
index 757e84e4..6b139b6a 100644
--- a/libdiskfs/io-stat.c
+++ b/libdiskfs/io-stat.c
@@ -17,6 +17,7 @@
#include "priv.h"
#include "io_S.h"
+#include <string.h>
/* Implement io_stat as described in <hurd/io.defs>. */
error_t
@@ -24,15 +25,15 @@ diskfs_S_io_stat (struct protid *cred,
io_statbuf_t *statbuf)
{
struct node *np;
- error_t error;
if (!cred)
return EOPNOTSUPP;
np = cred->po->np;
mutex_lock (&np->lock);
- ioserver_get_conch (&ip->conch);
+ ioserver_get_conch (&np->conch);
+ diskfs_set_node_times (np);
bcopy (&np->dn_stat, statbuf, sizeof (struct stat));
mutex_unlock (&np->lock);
- return error;
+ return 0;
}