Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 200851 Details for
Bug 298451
jsvc should warn about exec with absolute/relative path requirement
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to return a userful error message if absolute/relative path not used
jakarta-commons-daemon-1.0.1-execve-path-warning.patch (text/plain), 847 bytes, created by
James Ralston
on 2007-09-20 15:44:06 UTC
(
hide
)
Description:
patch to return a userful error message if absolute/relative path not used
Filename:
MIME Type:
Creator:
James Ralston
Created:
2007-09-20 15:44:06 UTC
Size:
847 bytes
patch
obsolete
>diff -up daemon-1.0.1/src/native/unix/native/jsvc-unix.c.execve-path-warning daemon-1.0.1/src/native/unix/native/jsvc-unix.c >--- daemon-1.0.1/src/native/unix/native/jsvc-unix.c.execve-path-warning 2005-05-17 04:02:30.000000000 -0400 >+++ daemon-1.0.1/src/native/unix/native/jsvc-unix.c 2007-09-20 11:16:22.000000000 -0400 >@@ -635,6 +635,15 @@ int main(int argc, char *argv[]) { > char *p1=NULL; > char *p2=NULL; > >+ /* We don't want to use a form of exec() that searches the >+ PATH, so require that argv[0] be either an absolute or >+ relative path. Error out if this isn't the case. */ >+ tmp=strchr(old,'/'); >+ if (tmp==NULL) { >+ log_error("JSVC re-exec requires execution with an absolute or relative path"); >+ return(1); >+ } >+ > p1=strdup(libf); > tmp=strrchr(p1,'/'); > if (tmp!=NULL) tmp[0]='\0';
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 298451
: 200851