]> git.ipfire.org Git - thirdparty/util-linux.git/blame - login-utils/setpwnam.h
scriptreplay: cleanup usage()
[thirdparty/util-linux.git] / login-utils / setpwnam.h
CommitLineData
fd6b7a7f
KZ
1/*
2 * setpwnam.h --
3 * define several paths
4 *
5 * (c) 1994 Martin Schulze <joey@infodrom.north.de>
6 * This file is based on setpwnam.c which is
7 * (c) 1994 Salvatore Valente <svalente@mit.edu>
8 *
9 * This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 */
bde91c85
KZ
14#ifndef UTIL_LINUX_SETPWNAM_H
15#define UTIL_LINUX_SETPWNAM_H
fd6b7a7f
KZ
16
17#include "pathnames.h"
18
fd6b7a7f 19#ifndef DEBUG
46b6bcca
SK
20# define PASSWD_FILE _PATH_PASSWD
21# define GROUP_FILE _PATH_GROUP
22# define SHADOW_FILE _PATH_SHADOW_PASSWD
6a91958b 23# define SGROUP_FILE _PATH_GSHADOW
fd6b7a7f 24#else
46b6bcca
SK
25# define PASSWD_FILE "/tmp/passwd"
26# define GROUP_FILE "/tmp/group"
27# define SHADOW_FILE "/tmp/shadow"
28# define SGROUP_FILE "/tmp/gshadow"
fd6b7a7f 29#endif
66ee8158 30
bde91c85
KZ
31extern int setpwnam (struct passwd *pwd, const char *prefix);
32
33#endif /* UTIL_LINUX_SETPWNAM_H */