Skip to main content

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

Send a bug report. You should not need read permission to execute the process on posix systems.

erc@xxxxxxxxxx wrote:

  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 (...)"


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,


cdt-dev mailing list

Back to the top