comparison toys/lsb/su.c @ 1564:685a0da6ca59 draft

probe for getspnam(), forkpty(), utmpx, replace sethostname() Android is missing all of these; we need to probe for some so we have a config symbol to depend on. sethostname() is easily replaced. We got termios.h via pty.h; now it's not included in configure-step tools, so we need termios.h to generate globals.
author Isaac Dunham <ibid.ag@gmail.com>
date Wed, 19 Nov 2014 16:38:46 -0600
parents 407357afa07f
children
comparison
equal deleted inserted replaced
1563:3d32f9523584 1564:685a0da6ca59
8 USE_SU(NEWTOY(su, "lmpc:s:", TOYFLAG_BIN|TOYFLAG_ROOTONLY)) 8 USE_SU(NEWTOY(su, "lmpc:s:", TOYFLAG_BIN|TOYFLAG_ROOTONLY))
9 9
10 config SU 10 config SU
11 bool "su" 11 bool "su"
12 default y 12 default y
13 depends on TOYBOX_SHADOW
13 help 14 help
14 usage: su [-lmp] [-c CMD] [-s SHELL] [USER [ARGS...]] 15 usage: su [-lmp] [-c CMD] [-s SHELL] [USER [ARGS...]]
15 16
16 Switch to user (or root) and run shell (with optional command line). 17 Switch to user (or root) and run shell (with optional command line).
17 18