mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-10 09:47:01 -04:00
The "git commit failed" warning said nothing about the cause, leaving the admin to guess between a missing identity, an ownership refusal, a git binary absent from the restricted PATH the web server gives to its CGIs, etc. run_git() now captures the command's stdout and stderr through a pipe and the warning line carries git's own message (first 255 bytes, control chars flattened), so the admin directly sees the cause; as the command runs through /bin/sh, an unfindable git yields status 127 and the shell's message, reworded as "cannot execute git: ..." to directly point at the typical PATH issue. Capturing also guarantees that git output can never corrupt the CGI response nor leak to the client on servers which wire the CGI's stderr to the socket. |
||
|---|---|---|
| .. | ||
| base64 | ||
| coccinelle | ||
| flags | ||
| gdb | ||
| h2 | ||
| haring | ||
| hpack | ||
| ncpu | ||
| patchbot | ||
| phash | ||
| plug_qdisc | ||
| poll | ||
| qpack | ||
| sslkeylogger | ||
| tcploop | ||
| term_events | ||
| trace | ||
| udp | ||