23 lines
1 KiB
C
23 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* pwd.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/11/01 17:39:01 by jhalford #+# #+# */
|
|
/* Updated: 2017/11/12 14:37:45 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "ftp_server.h"
|
|
|
|
int cmd_pwd(t_ftp *ftp, char **av)
|
|
{
|
|
char path[200];
|
|
|
|
(void)av;
|
|
getcwd(path, 200);
|
|
FTP_RET(ftp, "257 \"%s\"", path);
|
|
return (0);
|
|
}
|