appletlib: avoid warning on unused function ingroup
libbb/appletlib.c:558:12: warning: 'ingroup' defined but not used [-Wunused-function] static int ingroup(uid_t u, gid_t g) ^~~~~~~ That function is used only if FEATURE_SUID_CONFIG is also enabled. Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b05bcaf29c
commit
f1d76b64a0
@ -554,6 +554,7 @@ static inline void parse_config_file(void)
|
||||
|
||||
|
||||
# if ENABLE_FEATURE_SUID && NUM_APPLETS > 0
|
||||
# if ENABLE_FEATURE_SUID_CONFIG
|
||||
/* check if u is member of group g */
|
||||
static int ingroup(uid_t u, gid_t g)
|
||||
{
|
||||
@ -568,6 +569,7 @@ static int ingroup(uid_t u, gid_t g)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
# endif
|
||||
|
||||
static void check_suid(int applet_no)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user