why run sftp-server from shell?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 I have a question on the open ssh code (any version). when a request to run a subsystem (say sftp) is received by SSHD, why fork and exec a shell with '-c .../sftp-server' instead of directly fork-ing and exec-ing sftp-server? What value does the shell add?
 I know this is a common approach and may have nothing to do with SSH/SFTP in general but I wanted to understand the reasoning behind this.

TIA

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux