summaryrefslogtreecommitdiffhomepage
path: root/runopts.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-27 21:49:10 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-27 21:49:10 +0800
commit6eabc0fe87b9e4a72ea0f919ab549d3fff7cb68d (patch)
treed98e62a1a4c129ce2883e91a211bc2275688e40d /runopts.h
parentbf6f04cbe6b0fd712169223948b88eebe87f40cf (diff)
add guard HAVE_GETGROUPLIST
Diffstat (limited to 'runopts.h')
-rw-r--r--runopts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runopts.h b/runopts.h
index 67d5c48..3123383 100644
--- a/runopts.h
+++ b/runopts.h
@@ -92,8 +92,14 @@ typedef struct svr_runopts {
#endif
int norootlogin;
+
+#ifdef HAVE_GETGROUPLIST
+ /* restrict_group is the group name if group restriction was enabled,
+ NULL otherwise */
char *restrict_group;
+ /* restrict_group_gid is only valid if restrict_group is set */
gid_t restrict_group_gid;
+#endif
int noauthpass;
int norootpass;