bugmake - Bugs: bug #58174, make runs execve for a directory

 
 

bug #58174: make runs execve for a directory

Submitter:  Martin Liška <marxin>
Submitted:  Tue 14 Apr 2020 12:35:11 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  None Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 14 Apr 2020 01:10:30 PM UTC, comment #1: 

This is a duplicate of bug #57962 which is a bug in gnulib (that make uses for path lookup).

Paul D. Smith <psmith>
Group administrator
Tue 14 Apr 2020 12:35:11 PM UTC, original submission:  

$ 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
/usr/bin/gcc

Martin Liška <marxin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by marxin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-14 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code