qrexec: register callback for qrexec-lib

Now qrexec-lib do not use exported symbols of particular names, but
explicitly registered callbacks.
This commit is contained in:
Marek Marczykowski-Górecki 2014-02-07 05:35:24 +01:00
parent f77e2d656d
commit 433a942bc3

View File

@ -273,6 +273,8 @@ int main(int argc, char **argv)
if (optind >= argc || !domname) if (optind >= argc || !domname)
usage(argv[0]); usage(argv[0]);
register_exec_func(&do_exec);
s = connect_unix_socket(domname); s = connect_unix_socket(domname);
setenv("QREXEC_REMOTE_DOMAIN", domname, 1); setenv("QREXEC_REMOTE_DOMAIN", domname, 1);
prepare_local_fds(local_cmdline); prepare_local_fds(local_cmdline);