mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
coccinelle: skip the xsprintf transformation on man pages
since we don't expose xsprintf to users.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@@
|
||||
position p : script:python() { not p[0].file.startswith("man/") };
|
||||
expression e, fmt;
|
||||
expression list vaargs;
|
||||
@@
|
||||
- snprintf(e, sizeof(e), fmt, vaargs);
|
||||
- snprintf@p(e, sizeof(e), fmt, vaargs);
|
||||
+ xsprintf(e, fmt, vaargs);
|
||||
|
||||
Reference in New Issue
Block a user