URI: 
       ttar: remove /bin/ when invoking compressors - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a0691bc460cbef889d017a640034f3321bd36b9d
   DIR parent 8c573cab6819c69142389d36b978b3c683771afe
  HTML Author: phonologus <59876118+phonologus@users.noreply.github.com>
       Date:   Tue, 14 Jan 2020 19:52:18 +0000
       
       ttar: remove /bin/ when invoking compressors
       
       
       Diffstat:
         M src/cmd/tar.c                       |       7 +------
       
       1 file changed, 1 insertion(+), 6 deletions(-)
       ---
   DIR diff --git a/src/cmd/tar.c b/src/cmd/tar.c
       t@@ -179,7 +179,6 @@ static int
        push(int fd, char *cmd, int input, Pushstate *ps)
        {
                int nfd, pifds[2];
       -        String *s;
        
                ps->open = 0;
                ps->fd = fd;
       t@@ -197,11 +196,7 @@ push(int fd, char *cmd, int input, Pushstate *ps)
                                dup(pifds[Rd], Stdin);
                        close(pifds[input? Rd: Wr]);
                        dup(fd, (input? Stdin: Stdout));
       -                s = s_new();
       -                if (cmd[0] != '/')
       -                        s_append(s, "/bin/");
       -                s_append(s, cmd);
       -                execl(s_to_c(s), cmd, nil);
       +                execl(cmd, cmd, nil);
                        sysfatal("can't exec %s: %r", cmd);
                default:
                        nfd = pifds[input? Rd: Wr];