summaryrefslogtreecommitdiffstats
path: root/pw/pwupd.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-06-03 19:08:25 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-06-03 19:08:25 +0000
commitf435b89cda8616ae6c13310f36e6a4f3b16fc56f (patch)
tree891f05cfdc908a5b9d5955c293f043eaeb3d98bd /pw/pwupd.h
parentfe72eefbc64a4f8d14c5abd45c86151137f33967 (diff)
downloadpw-darwin-f435b89cda8616ae6c13310f36e6a4f3b16fc56f.tar.gz
pw-darwin-f435b89cda8616ae6c13310f36e6a4f3b16fc56f.tar.zst
pw-darwin-f435b89cda8616ae6c13310f36e6a4f3b16fc56f.zip
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
Diffstat (limited to 'pw/pwupd.h')
-rw-r--r--pw/pwupd.h4
1 files changed, 4 insertions, 0 deletions
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"