]> git.ipfire.org Git - thirdparty/kmod.git/commit
Replace NAME_MAX with PATH_MAX for module aliases
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Sun, 8 Jan 2012 03:02:29 +0000 (01:02 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Sun, 8 Jan 2012 03:02:29 +0000 (01:02 -0200)
commit6daceb2f1f4d442ba04752aaa1cf43d554d5f646
tree7a781cb16861da3709781eae5a594c25c4f1b365
parentdd1cf10fc468b64c787ace4eae93f159032580d0
Replace NAME_MAX with PATH_MAX for module aliases

Module aliases can be bigger than NAME_MAX. So, replace with PATH_MAX
that is bigger enough to hold them.

Technically in some places NAME_MAX would be sufficient (those using
module names only), but they use functions that can be called with
alias. So increase the buffers in these cases to PATH_MAX too.
libkmod/libkmod-module.c
libkmod/libkmod-util.c
libkmod/libkmod-util.h
tools/kmod-depmod.c