From f1cacd691c6b62757f4a0168eded3d8672a06b13 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 3 Jun 2015 19:08:25 +0000 Subject: New pw -R rootdir option This allows to set an alternate root directory in which the users/groups will be manipulated Requested by: gjb, ian Tested by: gjb --- pw/pwupd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pw/pwupd.h') diff --git a/pw/pwupd.h b/pw/pwupd.h index 1d13511..f936483 100644 --- a/pw/pwupd.h +++ b/pw/pwupd.h @@ -71,6 +71,10 @@ extern struct pwf VPWF; #define GETGRGID(gid) PWF._getgrgid(gid) #define GETGRNAM(nam) PWF._getgrnam(nam) +#define PWF_REGULAR 0 +#define PWF_ALT 1 +#define PWF_ROOTDIR 2 + #define PWALTDIR() PWF._altdir #ifndef _PATH_PWD #define _PATH_PWD "/etc" -- cgit v1.2.3