Mercurial > dropbear
comparison cli-session.c @ 594:a98a2138364a
Improve capitalisation for all logged strings
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 23 Feb 2011 15:50:30 +0000 |
parents | 005530560594 |
children | 983a817f8e41 |
comparison
equal
deleted
inserted
replaced
593:ea103e4476ce | 594:a98a2138364a |
---|---|
211 int devnull; | 211 int devnull; |
212 /* keeping stdin open steals input from the terminal and | 212 /* keeping stdin open steals input from the terminal and |
213 is confusing, though stdout/stderr could be useful. */ | 213 is confusing, though stdout/stderr could be useful. */ |
214 devnull = open(_PATH_DEVNULL, O_RDONLY); | 214 devnull = open(_PATH_DEVNULL, O_RDONLY); |
215 if (devnull < 0) { | 215 if (devnull < 0) { |
216 dropbear_exit("opening /dev/null: %d %s", | 216 dropbear_exit("Opening /dev/null: %d %s", |
217 errno, strerror(errno)); | 217 errno, strerror(errno)); |
218 } | 218 } |
219 dup2(devnull, STDIN_FILENO); | 219 dup2(devnull, STDIN_FILENO); |
220 if (daemon(0, 1) < 0) { | 220 if (daemon(0, 1) < 0) { |
221 dropbear_exit("Backgrounding failed: %d %s", | 221 dropbear_exit("Backgrounding failed: %d %s", |
296 * already sent/received disconnect message(s) ??? */ | 296 * already sent/received disconnect message(s) ??? */ |
297 m_close(ses.sock_in); | 297 m_close(ses.sock_in); |
298 m_close(ses.sock_out); | 298 m_close(ses.sock_out); |
299 ses.sock_in = -1; | 299 ses.sock_in = -1; |
300 ses.sock_out = -1; | 300 ses.sock_out = -1; |
301 dropbear_exit("remote closed the connection"); | 301 dropbear_exit("Remote closed the connection"); |
302 } | 302 } |
303 | 303 |
304 /* Operates in-place turning dirty (untrusted potentially containing control | 304 /* Operates in-place turning dirty (untrusted potentially containing control |
305 * characters) text into clean text. | 305 * characters) text into clean text. |
306 * Note: this is safe only with ascii - other charsets could have problems. */ | 306 * Note: this is safe only with ascii - other charsets could have problems. */ |