2 * Part of Very Secure FTPd
16 die(const char* p_text
)
25 die2(const char* p_text1
, const char* p_text2
)
27 struct mystr die_str
= INIT_MYSTR
;
28 str_alloc_text(&die_str
, p_text1
);
31 str_append_text(&die_str
, p_text2
);
35 str_append_text(&die_str
, "(null)");
37 die(str_getbuf(&die_str
));
41 bug(const char* p_text
)
43 /* Rats. Try and write the reason to the network for diagnostics */
44 vsf_sysutil_activate_noblock(VSFTP_COMMAND_FD
);
45 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, "500 OOPS: ", 10);
46 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, p_text
,
47 vsf_sysutil_strlen(p_text
));
48 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, "\r\n", 2);
53 vsf_exit(const char* p_text
)
55 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, p_text
,
56 vsf_sysutil_strlen(p_text
));