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
commitf1cacd691c6b62757f4a0168eded3d8672a06b13 (patch)
tree564c42a9fa9e4ce076cbe45dcc7e3020e1194eaa /pw/pwupd.h
parent8f462098108bd06c25d0d54f3ff624a3f7103a82 (diff)
downloadpw-darwin-f1cacd691c6b62757f4a0168eded3d8672a06b13.tar.gz
pw-darwin-f1cacd691c6b62757f4a0168eded3d8672a06b13.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"