diff options
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/io-identity.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libtrivfs/io-identity.c b/libtrivfs/io-identity.c index d563d8bf..94c5d68d 100644 --- a/libtrivfs/io-identity.c +++ b/libtrivfs/io-identity.c @@ -32,19 +32,20 @@ trivfs_S_io_identity (struct trivfs_protid *cred, int *fileno) { error_t err; + struct stat st; if (!cred) return EOPNOTSUPP; - err = io_stat (cred->realnode, st); + err = io_stat (cred->realnode, &st); if (err) return err; - trivfs_modify_stat (cred, st); + trivfs_modify_stat (cred, &st); *idport = cred->po->cntl->file_id; *idport_type = MACH_MSG_TYPE_MAKE_SEND; *fsidport = cred->po->cntl->filesys_id; *fsidport_type = MACH_MSG_TYPE_MAKE_SEND; - *fileno = st->st_fileno; + *fileno = st.st_fileno; return 0; } |