db-passwd-file.c revision 229e473f71a96ce61585730b165275a93a311e4e
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen/* Copyright (C) 2002-2003 Timo Sirainen */
34e7467e72d8a2e6b91ee6b2a50dd44570e12567Timo Sirainen#if defined (USERDB_PASSWD_FILE) || defined(PASSDB_PASSWD_FILE)
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainenstatic void passwd_file_add(struct passwd_file *pw, const char *username,
cf7164ece50797a67fc4bfb5889022ac93a36a8aTimo Sirainen /* args = uid, gid, user info, home dir, shell, flags, mail */
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen const char *p;
cf7164ece50797a67fc4bfb5889022ac93a36a8aTimo Sirainen if (hash_lookup(pw->users, username) != NULL) {
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen i_error("passwd-file %s: User %s exists more than once",
if (p == NULL) {
args++;
args++;
args++;
args++;
args++;
args++;
args++;
args++;
static struct passwd_file *
return pw;
const char *const *args;
const char *line;
int fd;
return FALSE;
return FALSE;
t_push();
t_pop();
return TRUE;
return FALSE;
return TRUE;
struct db_passwd_file *f;
return NULL;
struct db_passwd_file *
return db;
return db;
struct db_passwd_file **p;
if (*p == db) {
if (p == NULL)
return path;
struct passwd_user *
t_push();
t_pop();
return NULL;
t_push();
t_pop();
return pu;