示例#1
0
文件: path.cpp 项目: arrrrrrr/ebftpd
util::Error InnerAllowed(const User& user, const fs::VirtualPath& path)
{ 
  if (!InsideHomeDir(user, path)) return util::Error::Failure(EACCES);
  if (PrivatePath(path, user)) return util::Error::Failure(ENOENT);
  return Traits<type>::Allowed(user, path);
}
示例#2
0
文件: path.cpp 项目: cm277/ebftpd
util::Error Allowed(const User& user, const std::string& path)
{ 
  if (PrivatePath(path, user)) return util::Error::Failure(ENOENT);
  return Traits<type>::Allowed(user, path);
}