0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 20:27:08 +00:00
termux-packages/packages/samba/0008-disable-root-only-check-log-size.patch

19 lines
385 B
Diff

--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -1465,6 +1465,7 @@
* loop check do a new check as root.
*/
+#ifndef __ANDROID__
#if _SAMBA_BUILD_ == 3
if (geteuid() != sec_initial_uid())
#else
@@ -1477,6 +1478,7 @@
* make test or the build farm */
return;
}
+#endif
if(log_overflow || (!state.schedule_reopen_logs && !need_to_check_log_size())) {
return;