diff options
Diffstat (limited to 'netfs/daemon/daemonFile.cpp')
-rw-r--r-- | netfs/daemon/daemonFile.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/netfs/daemon/daemonFile.cpp b/netfs/daemon/daemonFile.cpp index 48aa025..94aebe6 100644 --- a/netfs/daemon/daemonFile.cpp +++ b/netfs/daemon/daemonFile.cpp @@ -2,15 +2,14 @@ #include <errno.h> #include <map> #include <fcntl.h> -#include <typeConvert.h> +#include <typeConverter.h> #include <sys/stat.h> #include "daemonFile.h" #include <entCache.h> FileServer::FileServer(int f, const EntryResolver<uid_t> & u, const EntryResolver<gid_t> & g) : - fd(f), - userLookup(u), - groupLookup(g) + TypeConverter(u, g), + fd(f) { } @@ -36,9 +35,7 @@ FileServer::fgetattr(const NetFS::ReqEnv & re, const Ice::Current &) if (::fstat(fd, &s) != 0) { throw NetFS::SystemError(errno); } - NetFS::Attr a; - a << StatSource { s, userLookup, groupLookup }; - return a; + return convert(s); } void |