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
);
29 str_append_text(&die_str
, p_text2
);
30 die(str_getbuf(&die_str
));
34 bug(const char* p_text
)
36 /* Rats. Try and write the reason to the network for diagnostics */
37 vsf_sysutil_activate_noblock(VSFTP_COMMAND_FD
);
38 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, "500 OOPS: ", 10);
39 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, p_text
,
40 vsf_sysutil_strlen(p_text
));
41 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, "\r\n", 2);
46 vsf_exit(const char* p_text
)
48 (void) vsf_sysutil_write_loop(VSFTP_COMMAND_FD
, p_text
,
49 vsf_sysutil_strlen(p_text
));