Bugzilla – Attachment 1552 Details for
Bug 1494
doesn't look on path for $SHELL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
look on $PATH for $SHELL
shell-path.patch (text/plain), 855 bytes, created by
Colin Watson
on 2008-07-29 19:52:40 AEST
(
hide
)
Description:
look on $PATH for $SHELL
Filename:
MIME Type:
Creator:
Colin Watson
Created:
2008-07-29 19:52:40 AEST
Size:
855 bytes
patch
obsolete
>Index: sshconnect.c >=================================================================== >RCS file: /cvs/openssh/sshconnect.c,v >retrieving revision 1.182 >diff -p -u -r1.182 sshconnect.c >--- sshconnect.c 2 Jul 2008 12:34:30 -0000 1.182 >+++ sshconnect.c 29 Jul 2008 09:51:06 -0000 >@@ -142,7 +142,7 @@ ssh_proxy_connect(const char *host, u_sh > > /* Execute the proxy command. Note that we gave up any > extra privileges above. */ >- execv(argv[0], argv); >+ execvp(argv[0], argv); > perror(argv[0]); > exit(1); > } >@@ -1169,7 +1169,7 @@ ssh_local_cmd(const char *args) > pid = fork(); > if (pid == 0) { > debug3("Executing %s -c \"%s\"", shell, args); >- execl(shell, shell, "-c", args, (char *)NULL); >+ execlp(shell, shell, "-c", args, (char *)NULL); > error("Couldn't execute %s -c \"%s\": %s", > shell, args, strerror(errno)); > _exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1494
: 1552