diff options
author | Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> | 2017-01-02 11:17:09 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-03 12:01:15 +0100 |
commit | f1d76b64a0f9da5a6bd068fff0ac3dc66422a3ab (patch) | |
tree | 3ff868e7a2c490f5eb7b92a8cad420faf80dfcce | |
parent | b05bcaf29c9008799aedb535cb42d2e60cc4cbb9 (diff) | |
download | busybox-w32-f1d76b64a0f9da5a6bd068fff0ac3dc66422a3ab.tar.gz busybox-w32-f1d76b64a0f9da5a6bd068fff0ac3dc66422a3ab.tar.bz2 busybox-w32-f1d76b64a0f9da5a6bd068fff0ac3dc66422a3ab.zip |
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>
-rw-r--r-- | libbb/appletlib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index ee8b4ec14..805cd3ae6 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -554,6 +554,7 @@ static inline void parse_config_file(void) | |||
554 | 554 | ||
555 | 555 | ||
556 | # if ENABLE_FEATURE_SUID && NUM_APPLETS > 0 | 556 | # if ENABLE_FEATURE_SUID && NUM_APPLETS > 0 |
557 | # if ENABLE_FEATURE_SUID_CONFIG | ||
557 | /* check if u is member of group g */ | 558 | /* check if u is member of group g */ |
558 | static int ingroup(uid_t u, gid_t g) | 559 | static int ingroup(uid_t u, gid_t g) |
559 | { | 560 | { |
@@ -568,6 +569,7 @@ static int ingroup(uid_t u, gid_t g) | |||
568 | } | 569 | } |
569 | return 0; | 570 | return 0; |
570 | } | 571 | } |
572 | # endif | ||
571 | 573 | ||
572 | static void check_suid(int applet_no) | 574 | static void check_suid(int applet_no) |
573 | { | 575 | { |