version 1.7, 2019/02/18 21:55:27 |
version 1.8, 2019/03/06 18:37:22 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <err.h> |
|
|
#include "extern.h" |
#include "extern.h" |
|
|
|
|
struct sess sess; |
struct sess sess; |
int fdin = STDIN_FILENO, |
int fdin = STDIN_FILENO, |
fdout = STDOUT_FILENO, rc = 0; |
fdout = STDOUT_FILENO, rc = 0; |
|
|
|
if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil", |
|
NULL) == -1) |
|
err(1, "pledge"); |
|
|
memset(&sess, 0, sizeof(struct sess)); |
memset(&sess, 0, sizeof(struct sess)); |
sess.opts = opts; |
sess.opts = opts; |