{
if ( !isExist() )
return 0;
- if ( owner() == getuid() ) {
+ if ( owner() == geteuid() ) {
return( uperm()/0100 );
- } else if ( group() == getgid() ) {
+ } else if ( group() == getegid() ) {
return( gperm()/010 );
}
return operm();
PathInfo h_info(curlrcFile.dirname(), PathInfo::LSTAT);
PathInfo c_info(curlrcFile, PathInfo::LSTAT);
- if( h_info.isDir() && h_info.owner() == getuid() &&
- c_info.isFile() && c_info.owner() == getuid())
+ if( h_info.isDir() && h_info.userMayRX() &&
+ c_info.isFile() && c_info.userMayR() )
{
MIL << "Going to parse " << curlrcFile << endl;
}
}
PathInfo adir( attach_root );
- if( !adir.isDir() || (getuid() != 0 && !adir.userMayRWX())) {
+ if( !adir.isDir() || (geteuid() != 0 && !adir.userMayRWX())) {
DBG << "Create attach point: attach root is not a writable directory: '"
<< attach_root << "'" << std::endl;
return apoint;