mirror of
https://github.com/3proxy/3proxy.git
synced 2026-09-02 12:55:49 +08:00
Guard attempts to load TransparentPlugin
Some checks failed
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
Update HTML documentation / docs (push) Has been cancelled
Update wiki / wiki (push) Has been cancelled
Some checks failed
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
Update HTML documentation / docs (push) Has been cancelled
Update wiki / wiki (push) Has been cancelled
(cherry picked from commit 7bc34002df)
This commit is contained in:
parent
6915ea126f
commit
ea4b2cc3a2
@ -1624,6 +1624,11 @@ static int h_plugin(int argc, unsigned char **argv){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_TRANSPARENT
|
||||||
|
if(argc >= 3 && !strcmp((char *)argv[2], "transparent_plugin")){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef NOPLUGINS
|
#ifdef NOPLUGINS
|
||||||
return 999;
|
return 999;
|
||||||
#else
|
#else
|
||||||
|
|||||||
@ -68,6 +68,15 @@ def run(t):
|
|||||||
t.not_contains(_config(t, "notransparent", "log\ntransparent\nnotransparent"),
|
t.not_contains(_config(t, "notransparent", "log\ntransparent\nnotransparent"),
|
||||||
"'notransparent'", "notransparent is accepted")
|
"'notransparent'", "notransparent is accepted")
|
||||||
|
|
||||||
|
# A configuration written for the plugin still loads: the line that used
|
||||||
|
# to load it is accepted and does nothing, the way the ssl and pcre ones
|
||||||
|
# are, so an existing configuration does not have to be edited first.
|
||||||
|
out = _config(t, "plugin_line",
|
||||||
|
"log\nplugin /usr/local/lib/TransparentPlugin.ld.so transparent_plugin")
|
||||||
|
t.not_contains(out, "failed", "loading the old plugin is accepted and ignored")
|
||||||
|
t.contains(_config(t, "plugin_missing", "log\nplugin /nope/NoSuch.so nosuch_plugin"),
|
||||||
|
"failed", "an unknown plugin still fails to load")
|
||||||
|
|
||||||
# --- and the redirection itself ------------------------------------
|
# --- and the redirection itself ------------------------------------
|
||||||
if platform.system() != "Linux":
|
if platform.system() != "Linux":
|
||||||
# The BSDs need a redirection that leaves the original destination on
|
# The BSDs need a redirection that leaves the original destination on
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user