USER msg changed
This commit is contained in:
parent
18d8963f1d
commit
21c173ff69
2 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/11/08 19:52:07 by jhalford #+# #+# */
|
/* Created: 2017/11/08 19:52:07 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/11/20 13:24:00 by jhalford ### ########.fr */
|
/* Updated: 2017/11/20 13:48:14 by jhalford ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/11/02 14:20:46 by jhalford #+# #+# */
|
/* Created: 2017/11/02 14:20:46 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/11/20 13:00:37 by jhalford ### ########.fr */
|
/* Updated: 2017/11/20 13:48:52 by jhalford ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ int cmd_user(t_ftp *ftp, char **av)
|
||||||
if ((mkdir(ftp->path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) < 0
|
if ((mkdir(ftp->path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) < 0
|
||||||
&& errno != EEXIST)
|
&& errno != EEXIST)
|
||||||
|| chdir(ftp->path) < 0)
|
|| chdir(ftp->path) < 0)
|
||||||
return (FTP_RET(ftp, "530 mkdir/chdir error"));
|
return (FTP_RET(ftp, "530 server doesn't have sufficient permissions"));
|
||||||
FTP_RET(ftp, "230 user logged in, proceed", ftp->username);
|
FTP_RET(ftp, "230 user logged in, proceed", ftp->username);
|
||||||
console_msg(1, "logon: %s@ftp://%s", ftp->username, ftp->path);
|
console_msg(1, "logon: %s@ftp://%s", ftp->username, ftp->path);
|
||||||
ftp->log_state = LOG_YES;
|
ftp->log_state = LOG_YES;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue