]> sourceware.org Git - lvm2.git/commit
cleanup: use just PATH_MAX size
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 19 Aug 2014 09:35:18 +0000 (11:35 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 19 Aug 2014 12:33:06 +0000 (14:33 +0200)
commit94786a3bbf0b68883a2618c9bc25fc88e367f9f8
tree775084b07751cecb8f92f072c4ab09d3bb72e5b7
parent5cd3b5c0cf562edc3ec2d860b4d51313525e4130
cleanup: use just PATH_MAX size

Avoid playing with +1.

PATH_MAX code needs probably more thinking anyway, since
there is no MAX path in Linux - user may easily create path
with 64kB chars - so 4kB buffer is surelly not enough for
such dirs.

Note:
http://insanecoding.blogspot.cz/2007/11/pathmax-simply-isnt.html
lib/device/dev-type.c
lib/filters/filter-mpath.c
libdm/libdm-common.c
This page took 0.037002 seconds and 5 git commands to generate.