2006-12-06 17:25:34 -06:00
|
|
|
/*
|
|
|
|
* setpwnam.h --
|
|
|
|
* define several paths
|
|
|
|
*
|
|
|
|
* (c) 1994 Martin Schulze <joey@infodrom.north.de>
|
|
|
|
* This file is based on setpwnam.c which is
|
|
|
|
* (c) 1994 Salvatore Valente <svalente@mit.edu>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*/
|
2015-08-24 03:05:55 -05:00
|
|
|
#ifndef UTIL_LINUX_SETPWNAM_H
|
|
|
|
#define UTIL_LINUX_SETPWNAM_H
|
2006-12-06 17:25:34 -06:00
|
|
|
|
|
|
|
#include "pathnames.h"
|
|
|
|
|
|
|
|
#ifndef DEBUG
|
2012-02-29 07:09:56 -06:00
|
|
|
# define PASSWD_FILE _PATH_PASSWD
|
|
|
|
# define GROUP_FILE _PATH_GROUP
|
|
|
|
# define SHADOW_FILE _PATH_SHADOW_PASSWD
|
2012-03-03 13:50:55 -06:00
|
|
|
# define SGROUP_FILE _PATH_GSHADOW
|
2006-12-06 17:25:34 -06:00
|
|
|
#else
|
2012-02-29 07:09:56 -06:00
|
|
|
# define PASSWD_FILE "/tmp/passwd"
|
|
|
|
# define GROUP_FILE "/tmp/group"
|
|
|
|
# define SHADOW_FILE "/tmp/shadow"
|
|
|
|
# define SGROUP_FILE "/tmp/gshadow"
|
2006-12-06 17:25:34 -06:00
|
|
|
#endif
|
2006-12-06 17:25:44 -06:00
|
|
|
|
2015-08-24 03:05:55 -05:00
|
|
|
extern int setpwnam (struct passwd *pwd, const char *prefix);
|
|
|
|
|
|
|
|
#endif /* UTIL_LINUX_SETPWNAM_H */
|