The Samba-Bugzilla – Attachment 1158 Details for
Bug 2613
smbsh to pass shell command line #! shebang (proposed code)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for smbsh to pass command line options to the shell
smbsh_shebang.patch (text/plain), 554 bytes, created by
Julian Bridle
on 2005-04-14 10:59:19 UTC
(
hide
)
Description:
Patch for smbsh to pass command line options to the shell
Filename:
MIME Type:
Creator:
Julian Bridle
Created:
2005-04-14 10:59:19 UTC
Size:
554 bytes
patch
obsolete
>*** smbsh.c.orig Mon Apr 4 18:02:54 2005 >--- smbsh.c Thu Apr 14 17:42:39 2005 >*************** >*** 117,126 **** > > { > char *shellpath = getenv("SHELL"); > if(shellpath) >! execl(shellpath,"smbsh",NULL); > else >! execl("/bin/sh","smbsh",NULL); > } > printf("launch failed!\n"); > return 1; >--- 118,128 ---- > > { > char *shellpath = getenv("SHELL"); >+ argv[--optind] = "smbsh"; > if(shellpath) >! execv(shellpath, argv+optind); > else >! execv("/bin/sh", argv+optind); > } > printf("launch failed!\n"); > return 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 Raw
Actions:
View
Attachments on
bug 2613
: 1158