[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #58174] make runs execve for a directory

From: Martin Liška
Subject: [bug #58174] make runs execve for a directory
Date: Tue, 14 Apr 2020 08:35:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36


                 Summary: make runs execve for a directory
                 Project: make
            Submitted by: marxin
            Submitted on: Tue 14 Apr 2020 12:35:11 PM UTC
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None



$ cd /tmp/
$ mkdir gcc
$ cat Makefile 
foo: foo.c
        gcc foo.c -o foo

$ export PATH=/tmp/:$PATH
$ echo "int main() {}" > foo.c && make foo
gcc foo.c -o foo
make: gcc: Permission denied
make: *** [Makefile:2: foo] Error 127

where make wrongly does:
[pid 22621] execve("/tmp/gcc", ["gcc", "foo.c", "-o", "foo"], 0x5555555c1d60
/* 76 vars */) = -1 EACCES (Permission denied)

$ which gcc


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]