Tiny Core Linux

Tiny Core Extensions => TCE Corepure64 => Topic started by: nagtiny on June 10, 2016, 05:10:20 PM

Title: path of sftp-server binary different in openssh extension in corepure64
Post by: nagtiny on June 10, 2016, 05:10:20 PM
hi,
in the 32bit openssh extension the path to the sftp-server binary is /usr/local/libexec/sftp-server, in the 64bit version its in /usr/local/lib/openssh/sftp-server.
is there a reason for this or could/should this be unified?

thank you,
nagtiny
Title: Re: path of sftp-server binary different in openssh extension in corepure64
Post by: bmarkus on June 10, 2016, 06:16:28 PM
Well, each one looks wrong. /usr/local/sbin would be better.
Title: Re: path of sftp-server binary different in openssh extension in corepure64
Post by: nagtiny on June 10, 2016, 06:54:28 PM
hm, in ubuntu its in /usr/lib/openssh/sftp-server, in arch its /usr/lib/ssh/sftp-server. according to the manpage of sftp-server, "sftp-
       server is not intended to be called directly, but from sshd(8) using the Subsystem option."
maybe thats the reason not to put it into sbin?
Title: Re: path of sftp-server binary different in openssh extension in corepure64
Post by: Juanito on June 11, 2016, 03:59:52 AM
the "make install" routine in different packages treats libexec files differently.

By default, they can be installed to:

$PREFIX/libexec
$PREFIX/libexec/package_name
$PREFIX/lib/package_name

..and probably others besides.

For consistency, I have been adjusting the ./configure switches, where necessary, so that libexec files are installed in /usr/local/lib/package_name.

Note that, since the libexec files are not called directly, the actually location is not that important, but cannot be changed after installation.