summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/debug.h b/include/debug.h
index 07a8dcb2a..6d4ecd92b 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -95,8 +95,10 @@ struct ul_debug_maskname {
} else \
lib ## _debug_mask = mask; \
if (lib ## _debug_mask) { \
- if (getuid() != geteuid() || getgid() != getegid()) \
+ if (getuid() != geteuid() || getgid() != getegid()) { \
lib ## _debug_mask |= __UL_DEBUG_FL_NOADDR; \
+ fprintf(stderr, "%d: %s: SUID executable: pointer addresses suppressed.\n", getpid(), # lib); \
+ } \
} \
lib ## _debug_mask |= pref ## INIT; \
} while (0)