#include "includes.h"
-extern struct current_user current_user;
-
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
} else {
sbuf->st_mode = S_IRWXU;
}
- sbuf->st_uid = current_user.ut.uid;
- sbuf->st_gid = current_user.ut.gid;
+ sbuf->st_uid = handle->conn->server_info->uid;
+ sbuf->st_gid = handle->conn->server_info->gid;
}
return ret;
} else {
sbuf->st_mode = S_IRWXU;
}
- sbuf->st_uid = current_user.ut.uid;
- sbuf->st_gid = current_user.ut.gid;
+ sbuf->st_uid = handle->conn->server_info->uid;
+ sbuf->st_gid = handle->conn->server_info->gid;
}
return ret;
}