busybox-1.25.1-setfiles.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From c1704a34745f8e49373eb2cbe1c83199ab2d0091 Mon Sep 17 00:00:00 2001
  2. From: Mike Frysinger <vapier@gentoo.org>
  3. Date: Fri, 9 Dec 2016 18:14:12 -0500
  4. Subject: [PATCH] setfiles: fix build failure after common_bufsiz change
  5. Commit 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 ("*: add most of the
  6. required setup_common_bufsiz() calls") switched this tool over to use
  7. the common_bufsiz logic but missed including the header leading to a
  8. build failure when enabled:
  9. selinux/setfiles.c:80:30: error: 'bb_common_bufsiz1' undeclared (first use in this function)
  10. URL: https://bugs.gentoo.org/600106
  11. Reported-by: Jonas Jelten <jj@stusta.net>
  12. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  13. (cherry picked from commit 1cda8790803a6fb072375c8fa53273333d2d4607)
  14. ---
  15. selinux/setfiles.c | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/selinux/setfiles.c b/selinux/setfiles.c
  18. index 51a7e63bd741..d8083d4fd580 100644
  19. --- a/selinux/setfiles.c
  20. +++ b/selinux/setfiles.c
  21. @@ -46,6 +46,7 @@
  22. //usage: "\n if it has changed"
  23. #include "libbb.h"
  24. +#include "common_bufsiz.h"
  25. #if ENABLE_FEATURE_SETFILES_CHECK_OPTION
  26. #include <sepol/sepol.h>
  27. #endif
  28. --