version 1.22, 2015/11/09 16:34:02 |
version 1.23, 2015/11/09 16:36:10 |
|
|
if (s != NULL && *s != '\0') |
if (s != NULL && *s != '\0') |
secure = 1; |
secure = 1; |
|
|
|
if (secure) { |
|
if (pledge("stdio rpath wpath tty", NULL) == -1) |
|
err(1, "pledge"); |
|
} else { |
|
if (pledge("stdio rpath wpath cpath fattr proc exec tty", NULL) == -1) |
|
err(1, "pledge"); |
|
} |
|
|
/* |
/* |
* Process command line arguments and LESS environment arguments. |
* Process command line arguments and LESS environment arguments. |
* Command line arguments override environment arguments. |
* Command line arguments override environment arguments. |
|
|
error("WARNING: terminal is not fully functional", NULL_PARG); |
error("WARNING: terminal is not fully functional", NULL_PARG); |
init_mark(); |
init_mark(); |
open_getchr(); |
open_getchr(); |
|
|
|
if (secure) |
|
if (pledge("stdio rpath tty", NULL) == -1) |
|
err(1, "pledge"); |
|
|
raw_mode(1); |
raw_mode(1); |
init_signals(1); |
init_signals(1); |
|
|