vsftpd 한글 깨지는 문제

윈도우에서 접속하면 한글이 깨져 보인다  해결하려면

 

- apt-get source vsftpd로 소스를 받아서… opts.c 파일을 수정한다.

#include “ftpcodes.h”
#include “ftpcmdio.h”
#include “session.h”
#include “tunables.h”

void
handle_opts(struct vsf_session* p_sess)
{
struct mystr opts = INIT_MYSTR;
struct mystr prm  = INIT_MYSTR;
str_copy(&opts, &p_sess->ftp_arg_str);
str_upper(&opts);
str_split_char(&opts, &prm, ‘ ‘);
/*
if (str_equal_text(&opts, “UTF8″))
{
if (str_equal_text(&prm, “ON”))
{
tunable_charset_client=vsf_sysutil_strdup(“UTF8″);
vsf_cmdio_write(p_sess, FTP_OPTSOK, “UTF8 option is On.”);
}
else
if (str_equal_text(&prm, “OFF”))
{
vsf_cmdio_write(p_sess, FTP_OPTSOK, “UTF8 option is Off.”);
}
else
{
vsf_cmdio_write(p_sess, FTP_BADOPTS, “Invalid UTF8 option.”);
}
}
else */

{
vsf_cmdio_write(p_sess, FTP_BADOPTS, “Option not understood.”);
}
}

- 색으로 칠해진 소스를 주석 처리하면 끝..

패키징 하고

make

그리고

sudo  debian/rules binary

상위 폴더에 .deb 찾아 더블클릭 설치하면 완료

,

  1. 댓글 남기기

댓글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. Log Out / 변경 )

Twitter picture

Twitter의 계정을 사용하여 댓글을 남깁니다. Log Out / 변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. Log Out / 변경 )

%s에 연결하는 중

팔로우

Get every new post delivered to your Inbox.