Thread (17 messages) flat view 17 messages, 5 authors, 2016-06-15

Re: [PATCH] Set up argv0_path correctly, even when argv[0] is just the basename

From: Rene Herman <hidden>
Date: 2016-06-15 22:45:03

On 26-07-08 16:14, Johannes Schindelin wrote:
When the program 'git' is in the PATH, the argv[0] is set to the
basename. However, argv0_path needs the full path, so add a function
to discover the program by traversing the PATH manually.
While not having read the context for this, this ofcourse sounds like a 
huge gaping race-condition. If applicable here (as said, did not read 
context) you generally want to make sure that there's no window that a 
path could be replaced -- while perhaps not here, that's often the kind 
of thing that security attacks end up abusing.

Rene.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help