]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - tools/checkxalloc.sh
su: change error message
[thirdparty/util-linux.git] / tools / checkxalloc.sh
index c507777dbc8dc215cb1455b69d9078b0cfb3f07c..3c342545f715e1636cc2dfe19a1ad3d77efdd89e 100755 (executable)
@@ -10,7 +10,7 @@ cd "$(git rev-parse --show-toplevel)" || {
 }
 
 git grep -zl '#include "xalloc.h"' |
-  xargs -0 grep -nwE '[^x](([cm]|re)alloc|strdup|asprintf)\('
+  xargs -0 grep -nE '\b(([cm]|re)alloc|strdup|asprintf)[[:space:]]*\([^)]'
 
 result=$?