commit | ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 | [log] [tgz] |
---|---|---|
author | Jim Meyering <jim@meyering.net> | Tue Aug 21 09:20:49 2012 +0200 |
committer | Eric Van Hensbergen <ericvh@gmail.com> | Thu Sep 06 13:54:53 2012 -0500 |
tree | 616525a5d4954660f290f9130c699002571c05e4 | |
parent | 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d [diff] |
fs/9p: avoid debug OOPS when reading a long symlink Reading a symlink longer than the given buffer, a p9_debug use would try to print the link name (not NUL-terminated) using a %s format. Use %.*s instead, and replace the strncpy+strnlen with functionally equivalent strlen+memcpy. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>