s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-pw2u.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "buffer.h"
#include "getoptb.h"
#include "control.h"
#include "constmap.h"
#include "stralloc.h"
#include "fmt.h"
#include "str.h"
#include "scan.h"
#include "open.h"
#include "logmsg.h"
#include "exit.h"
#include "getln.h"
#include "byte.h"
#include "auto_break.h"
#include "auto_qmail.h"
#include "auto_usera.h"
Include dependency graph for qmail-pw2u.c:

Go to the source code of this file.

Macros

#define WHO   "qmail-pw2u"
 

Functions

void die_chdir ()
 
void die_nomem ()
 
void die_read ()
 
void die_write ()
 
void die_control ()
 
void die_alias ()
 
void die_home (char *fn)
 
void die_user (char *s, unsigned int len)
 
void doaccount ()
 
void dosubuser ()
 
int main (int argc, char **argv)
 

Variables

char * dashcolon = "-:"
 
int flagalias = 0
 
int flagnoupper = 1
 
int homestrategy = 2
 
int okincl
 
stralloc incl = {0}
 
struct constmap mapincl
 
int okexcl
 
stralloc excl = {0}
 
struct constmap mapexcl
 
int okmana
 
stralloc mana = {0}
 
struct constmap mapmana
 
stralloc allusers = {0}
 
struct constmap mapuser
 
stralloc uugh = {0}
 
stralloc user = {0}
 
stralloc uidstr = {0}
 
stralloc gidstr = {0}
 
stralloc home = {0}
 
unsigned long uid
 
stralloc line = {0}
 
stralloc sub = {0}
 
int fd
 
char inbuf [BUFFER_INSIZE]
 
buffer in
 

Macro Definition Documentation

◆ WHO

#define WHO   "qmail-pw2u"

Definition at line 21 of file qmail-pw2u.c.

Function Documentation

◆ die_alias()

void die_alias ( )

Definition at line 53 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_chdir()

void die_chdir ( )

Definition at line 23 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_control()

void die_control ( void  )

Definition at line 47 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_home()

void die_home ( char *  fn)

Definition at line 62 of file qmail-pw2u.c.

Here is the call graph for this function:

◆ die_nomem()

void die_nomem ( void  )

Definition at line 29 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_read()

void die_read ( void  )

Definition at line 35 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_user()

void die_user ( char *  s,
unsigned int  len 
)

Definition at line 71 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_write()

void die_write ( )

Definition at line 41 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doaccount()

void doaccount ( )

Definition at line 103 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dosubuser()

void dosubuser ( )

Definition at line 205 of file qmail-pw2u.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 241 of file qmail-pw2u.c.

Here is the call graph for this function:

Variable Documentation

◆ allusers

stralloc allusers = {0}

Definition at line 92 of file qmail-pw2u.c.

◆ dashcolon

char* dashcolon = "-:"

Definition at line 80 of file qmail-pw2u.c.

◆ excl

stralloc excl = {0}

Definition at line 89 of file qmail-pw2u.c.

◆ fd

int fd

Definition at line 237 of file qmail-pw2u.c.

◆ flagalias

int flagalias = 0

Definition at line 81 of file qmail-pw2u.c.

◆ flagnoupper

int flagnoupper = 1

Definition at line 82 of file qmail-pw2u.c.

◆ gidstr

stralloc gidstr = {0}

Definition at line 97 of file qmail-pw2u.c.

◆ home

stralloc home = {0}

Definition at line 98 of file qmail-pw2u.c.

◆ homestrategy

int homestrategy = 2

Definition at line 83 of file qmail-pw2u.c.

◆ in

buffer in

Definition at line 239 of file qmail-pw2u.c.

◆ inbuf

char inbuf[BUFFER_INSIZE]

Definition at line 238 of file qmail-pw2u.c.

◆ incl

stralloc incl = {0}

Definition at line 88 of file qmail-pw2u.c.

◆ line

stralloc line = {0}

Definition at line 101 of file qmail-pw2u.c.

◆ mana

stralloc mana = {0}

Definition at line 90 of file qmail-pw2u.c.

◆ mapexcl

struct constmap mapexcl

Definition at line 89 of file qmail-pw2u.c.

◆ mapincl

struct constmap mapincl

Definition at line 88 of file qmail-pw2u.c.

◆ mapmana

struct constmap mapmana

Definition at line 90 of file qmail-pw2u.c.

◆ mapuser

struct constmap mapuser

Definition at line 92 of file qmail-pw2u.c.

◆ okexcl

int okexcl

Definition at line 89 of file qmail-pw2u.c.

◆ okincl

int okincl

Definition at line 88 of file qmail-pw2u.c.

◆ okmana

int okmana

Definition at line 90 of file qmail-pw2u.c.

◆ sub

stralloc sub = {0}

Definition at line 203 of file qmail-pw2u.c.

◆ uid

unsigned long uid

Definition at line 99 of file qmail-pw2u.c.

◆ uidstr

stralloc uidstr = {0}

Definition at line 96 of file qmail-pw2u.c.

◆ user

stralloc user = {0}

Definition at line 95 of file qmail-pw2u.c.

◆ uugh

stralloc uugh = {0}

Definition at line 94 of file qmail-pw2u.c.