diff options
author | Michael Kelly <mike@weatherwax.co.uk> | 2025-07-10 18:34:21 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-07-10 18:37:03 +0200 |
commit | cdedbc4b018212f60e7e64b9696d6a7641281452 (patch) | |
tree | 4cda3e60748a98902f733046539938230557b753 | |
parent | 3df101ed0d44b7f22d18890973fe400cb2551d73 (diff) |
nfs: Fix xdr_decode_fattr decoding for v3
-rw-r--r-- | nfs/nfs.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -453,6 +453,10 @@ xdr_decode_fattr (int *p, struct stat *st) p++; st->st_blocks = ntohl (*p); p++; + st->st_fsid = ntohl (*p); + p++; + st->st_ino = ntohl (*p); + p++; } else { @@ -468,11 +472,9 @@ xdr_decode_fattr (int *p, struct stat *st) minor = ntohl (*p); p++; st->st_rdev = gnu_dev_makedev (major, minor); + p = xdr_decode_64bit(p, &st->st_fsid); + p = xdr_decode_64bit(p, &st->st_ino); } - st->st_fsid = ntohl (*p); - p++; - st->st_ino = ntohl (*p); - p++; st->st_atim.tv_sec = ntohl (*p); p++; st->st_atim.tv_nsec = ntohl (*p); |