Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Custom "Build Command" problem


Hey,
  I've been trying to use a custom build command that starts with a
call to "sudo" however I get the strange message:


Unable to find full path for "sudo (...)"


or


Unable to find full path for "/usr/bin/sudo (...)"


I checked CDT's source code. I found at the pfind.c file:


/* For absolute name or name with a path, check if it is an executable.
*/
if (name[0] == '/' || name[0] == '.') {
       if (access(name, X_OK | R_OK) == 0) {
               return strdup(name);
       }
       return NULL;
}


However in my case, a normal user has no read permission to "sudo" only
execute permission. Should it really check for the read permission?


Is there a workaround for this? Is it a bug?


Thanks in advance,
Everton



Back to the top