diff options
author | Duane Griffin <duaneg@dghda.com> | 2009-01-09 01:43:49 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-03-27 21:43:58 +0300 |
commit | f33219b7a90c4779a0b59e11fb35ebc4542db328 (patch) | |
tree | a5ed8dea0850d8f9ac8d19a5477c6bbdea3fe5ce /fs/ufs/ufs.h | |
parent | 9e6766cc8c125cf406960a5bfdf1455473f4835c (diff) | |
download | linux-f33219b7a90c4779a0b59e11fb35ebc4542db328.tar.xz |
ufs: don't truncate longer ufs2 fast symlinks
ufs2 fast symlinks can be twice as long as ufs ones, however the code
was using the ufs size in various places. Fix that so ufs2 symlinks over
60 characters aren't truncated.
Note that we copy the entire area instead of using the maxsymlinklen field
from the superblock. This way we will be more robust against corruption (of
the superblock).
While we are at it, use memcpy instead of open-coding it with for loops.
Signed-off-by: Duane Griffin <duaneg@dghda.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/ufs.h')
-rw-r--r-- | fs/ufs/ufs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ufs/ufs.h b/fs/ufs/ufs.h index 11c035168ea6..69b3427d7885 100644 --- a/fs/ufs/ufs.h +++ b/fs/ufs/ufs.h @@ -23,7 +23,7 @@ struct ufs_sb_info { struct ufs_inode_info { union { __fs32 i_data[15]; - __u8 i_symlink[4*15]; + __u8 i_symlink[2 * 4 * 15]; __fs64 u2_i_data[15]; } i_u1; __u32 i_flags; |