Displaying 1 result from an estimated 1 matches for "confparse".
2024 Aug 14
3
[Bug 3717] New: Stricter sshd absolute path requirement breaks xinetd
...if (!test_flag && !do_dump_cfg && !path_absolute(av[0]))
+ fatal("sshd requires execution with an absolute path");
Secondly, xinetd apparently explicitly only passes the basename when
setting up argv[0]:
https://github.com/openSUSE/xinetd/blob/master/src/confparse.c#L92
/*
* Determine server name
*/
server_name = strrchr( SC_SERVER(scp), '/' ) ;
if ( server_name == NULL )
server_name = SC_SERVER(scp) ;
else
server_name++ ; /* skip the '/' */
/*
* Place it in argv[ 0 ]
*/
SC_SERVER_ARGV(scp)...