mirror of
https://repo.or.cz/socat.git
synced 2025-07-28 13:22:58 +00:00
port to Android
This commit is contained in:
parent
0b472d59d2
commit
26801266f2
11 changed files with 84 additions and 0 deletions
|
@ -1458,10 +1458,14 @@ const struct optname optionnames[] = {
|
|||
IF_ANY ("streams-i-push", &opt_streams_i_push)
|
||||
#endif
|
||||
IF_ANY ("su", &opt_substuser)
|
||||
#if defined(HAVE_SETGRENT) && defined(HAVE_GETGRENT) && defined(HAVE_ENDGRENT)
|
||||
IF_ANY ("su-d", &opt_substuser_delayed)
|
||||
#endif
|
||||
IF_ANY ("su-e", &opt_substuser_early)
|
||||
IF_ANY ("substuser", &opt_substuser)
|
||||
#if defined(HAVE_SETGRENT) && defined(HAVE_GETGRENT) && defined(HAVE_ENDGRENT)
|
||||
IF_ANY ("substuser-delayed", &opt_substuser_delayed)
|
||||
#endif
|
||||
IF_ANY ("substuser-early", &opt_substuser_early)
|
||||
IF_TERMIOS("susp", &opt_vsusp)
|
||||
#ifdef VSWTC
|
||||
|
@ -3330,6 +3334,7 @@ int applyopts(int fd, struct opt *opts, enum e_phase phase) {
|
|||
#endif
|
||||
}
|
||||
break;
|
||||
#if defined(HAVE_SETGRENT) && defined(HAVE_GETGRENT) && defined(HAVE_ENDGRENT)
|
||||
case OPT_SUBSTUSER_DELAYED:
|
||||
{
|
||||
struct passwd *pwd;
|
||||
|
@ -3363,6 +3368,7 @@ int applyopts(int fd, struct opt *opts, enum e_phase phase) {
|
|||
delayeduser = true;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case OPT_CHROOT_EARLY:
|
||||
case OPT_CHROOT:
|
||||
if (Chroot(opt->value.u_string) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue