Lines 183-188
Link Here
|
183 |
static void |
183 |
static void |
184 |
shell_loop(int connfd, int infd, int outfd) |
184 |
shell_loop(int connfd, int infd, int outfd) |
185 |
{ |
185 |
{ |
|
|
186 |
int foo; |
186 |
fd_set readfds; |
187 |
fd_set readfds; |
187 |
int n, l; |
188 |
int n, l; |
188 |
char buf[512]; |
189 |
char buf[512]; |
Lines 222-228
Link Here
|
222 |
return; |
223 |
return; |
223 |
} |
224 |
} |
224 |
|
225 |
|
225 |
write(1, buf, l); // Echo to the local terminal |
226 |
foo = write(1, buf, l); // Echo to the local terminal |
226 |
} |
227 |
} |
227 |
|
228 |
|
228 |
if (FD_ISSET(connfd, &readfds)) |
229 |
if (FD_ISSET(connfd, &readfds)) |
Lines 341-351
Link Here
|
341 |
void |
342 |
void |
342 |
pty_session(int connfd) |
343 |
pty_session(int connfd) |
343 |
{ |
344 |
{ |
|
|
345 |
int boo; |
344 |
pid_t pid; |
346 |
pid_t pid; |
345 |
int ptyfd; |
347 |
int ptyfd; |
346 |
FILE *f; |
348 |
FILE *f; |
347 |
char tmpl[32]="/tmp/osspartyshXXXXXX"; |
349 |
char tmpl[32]="/tmp/osspartyshXXXXXX"; |
348 |
mkstemp(tmpl); |
350 |
boo = mkstemp(tmpl); |
349 |
|
351 |
|
350 |
chmod(tmpl, 0700); |
352 |
chmod(tmpl, 0700); |
351 |
|
353 |
|