access.c File Reference

#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <pwd.h>
#include <stdlib.h>
#include <unistd.h>
#include <net/gen/in.h>
#include <net/gen/tcp.h>
#include "ftpd.h"
#include "access.h"

Include dependency graph for access.c:

Go to the source code of this file.

Functions

 _PROTOTYPE (static int AreWeIn,(char *name, struct passwd *pwd))
int ChkLoggedIn ()
int doUSER (char *buff)
int doPASS (char *buff)
int doQUIT (char *buff)
static int AreWeIn (char *name, struct passwd *pwd)

Variables

static char * msg530 = "530 Not logged in.\r\n"


Function Documentation

_PROTOTYPE static int  AreWeIn,
(char *name, struct passwd *pwd
 

static int AreWeIn char *  name,
struct passwd pwd
[static]
 

Definition at line 105 of file access.c.

References anonymous, chdir, chroot, GOOD, loggedin, logit(), newroot, NULL, printf, passwd::pw_dir, passwd::pw_gid, passwd::pw_uid, pwd, setgid, setuid, showmsg(), strcmp, strcpy(), strncpy(), and username.

Referenced by doPASS().

int ChkLoggedIn  ) 
 

Definition at line 30 of file access.c.

References loggedin, and printf.

Referenced by doCDUP(), doCWD(), doDELE(), dofdet(), doMDTM(), doMKD(), doPASV(), doPWD(), doREST(), doRMD(), doRNFR(), doRNTO(), doSITE(), doSIZE(), doSTAT(), recvfile(), and sendfile().

int doPASS char *  buff  ) 
 

Definition at line 61 of file access.c.

References anonpass, AreWeIn(), bad, crypt, getpwnam(), GOOD, gotuser, logit(), printf, passwd::pw_passwd, pwd, strcmp, strncpy(), and username.

int doQUIT char *  buff  ) 
 

Definition at line 96 of file access.c.

References BAD, and printf.

int doUSER char *  buff  ) 
 

Definition at line 40 of file access.c.

References GOOD, gotuser, loggedin, printf, strncpy(), and username.


Variable Documentation

char* msg530 = "530 Not logged in.\r\n" [static]
 

Definition at line 27 of file access.c.


Generated on Fri Apr 14 23:03:29 2006 for minix by  doxygen 1.4.6