diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-05 10:48:47 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-09 11:42:20 -0400 |
commit | e17a21d3bb067e561fc0112a3957f579af26d9d9 (patch) | |
tree | 6f193ad4cc2a60e80f22266996198c78fd405ae1 | |
parent | 972b241f8441dc37a3f89dcd7e71d7f013873d13 (diff) |
get_acorn_filename(): deobfuscate a bit
Lots of Idiotic Silly Parentheses is -> that way... What that
condition checks is that there's exactly 32 bytes between the
end of name and the end of entire drectory record.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/isofs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c index b943cbd963bb..dfd14e1b9dcf 100644 --- a/fs/isofs/dir.c +++ b/fs/isofs/dir.c | |||
@@ -58,7 +58,7 @@ int get_acorn_filename(struct iso_directory_record *de, | |||
58 | std = sizeof(struct iso_directory_record) + de->name_len[0]; | 58 | std = sizeof(struct iso_directory_record) + de->name_len[0]; |
59 | if (std & 1) | 59 | if (std & 1) |
60 | std++; | 60 | std++; |
61 | if ((*((unsigned char *) de) - std) != 32) | 61 | if (de->length[0] - std != 32) |
62 | return retnamlen; | 62 | return retnamlen; |
63 | chr = ((unsigned char *) de) + std; | 63 | chr = ((unsigned char *) de) + std; |
64 | if (strncmp(chr, "ARCHIMEDES", 10)) | 64 | if (strncmp(chr, "ARCHIMEDES", 10)) |