blocxx
PathSecurity.hpp File Reference
#include "blocxx/BLOCXX_config.h"
#include "blocxx/String.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE
 Taken from RFC 1321.
 

Macros

#define LSTAT   ::lstat
 
#define READLINK(path, buf, size)
 
#define READLINK_ALLOWED   true
 

Enumerations

enum  BLOCXX_NAMESPACE::EFileStatusReturn { BLOCXX_NAMESPACE::E_FILE_OK , BLOCXX_NAMESPACE::E_FILE_BAD_OWNER , BLOCXX_NAMESPACE::E_FILE_BAD_OTHER }
 

Functions

BLOCXX_COMMON_API bool BLOCXX_NAMESPACE::isPathAbsolute (String const &path)
 
EFileStatusReturn BLOCXX_NAMESPACE::getFileStatus (struct stat const &x, uid_t uid, bool is_full_path, const String &path)
 GetFileStatus() - just to unify the call of file_ok() for Win and xNix.
 

Macro Definition Documentation

◆ LSTAT

#define LSTAT   ::lstat

Definition at line 126 of file PathSecurity.hpp.

◆ READLINK

#define READLINK ( path,
buf,
size )
Value:
::readlink((path), (buf), (size))

Definition at line 127 of file PathSecurity.hpp.

◆ READLINK_ALLOWED

#define READLINK_ALLOWED   true

Definition at line 128 of file PathSecurity.hpp.