2025-05-08 08:14 ftp://ftp.de.debian.org/debian/pool/main/s/systemd-cron/systemd-cron_2.5.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 8 8 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: systemd-cron-2.5.1/src/bin/crontab.cpp:306:63: error: There is an unknown macro here somewhere. Configuration is required. If STATEDIR is a macro then please configure it. [unknownMacro] systemd-cron-2.5.1/src/bin/crontab_setgid.c:18:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] systemd-cron-2.5.1/src/bin/crontab_setgid.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGIN_NAME_MAX [valueFlowBailoutIncompleteVar] systemd-cron-2.5.1/src/bin/crontab_setgid.c:34:7: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] systemd-cron-2.5.1/src/bin/crontab_setgid.c:17:17: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] systemd-cron-2.5.1/src/bin/crontab_setgid.c:28:26: style: Parameter 'argv' can be declared as const array [constParameter] systemd-cron-2.5.1/src/bin/crontab_setgid.c:33:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] systemd-cron-2.5.1/src/bin/systemd-crontab-generator.cpp:888:26: error: There is an unknown macro here somewhere. Configuration is required. If PAMNAME is a macro then please configure it. [unknownMacro] diff: DONE