aboutsummaryrefslogtreecommitdiffstats
path: root/plpnfsd/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plpnfsd/main.cc')
-rw-r--r--plpnfsd/main.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/plpnfsd/main.cc b/plpnfsd/main.cc
index 96c2be4..d1e0337 100644
--- a/plpnfsd/main.cc
+++ b/plpnfsd/main.cc
@@ -393,12 +393,14 @@ long rfsv_setattr(const char *name, long sattr, long dattr) {
long rfsv_getattr(const char *name, long *attr, long *size, long *time) {
long res;
- PsiTime pt;
+ PlpDirent e;
if (!a)
return -1;
- res = a->fgeteattr(name, *attr, *size, pt);
- *time = pt.getTime();
+ res = a->fgeteattr(name, e);
+ *attr = e.getAttr();
+ *size = e.getSize();
+ *time = e.getPsiTime().getTime();
return res;
}