summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnetfs/io-seek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/io-seek.c b/libnetfs/io-seek.c
index 7ff472c0..1ab3668f 100644
--- a/libnetfs/io-seek.c
+++ b/libnetfs/io-seek.c
@@ -47,7 +47,7 @@ netfs_S_io_seek (struct protid *user,
break;
case SEEK_END:
- err = netfs_validate_stat (user->po->np, user);
+ err = netfs_validate_stat (user->po->np, user->credential);
if (!err)
user->po->filepointer = user->po->np->nn_stat.st_size + offset;
break;