Whamcloud - gitweb
util: avoid off-by-one on long symlinks
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 20 Jul 2015 14:42:40 +0000 (10:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Jul 2015 04:17:07 +0000 (00:17 -0400)
commit9bcfea2a892de55e71f530472bef9b403f034edb
treeeda7d0dd0667fb8badcb9e888627d867d1ba6246
parent8815116d1d0d502f81abecf32bc077f745b835a0
util: avoid off-by-one on long symlinks

readlink does not nul terminate its result, therefore one extra byte
has to be taken into account.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
util/symlinks.c