Skip to content

Commit 18a777e

Browse files
shawnljankara
authored andcommitted
isofs: support full length file names (255 instead of 253)
Linux file names are in principle limited only to PATH_MAX (which is 4096) but the code in get_rock_ridge_filename() limits them to 253 characters. As mentioned by Jan Kara, the Rockridge standard to ECMA119/ISO9660 has no limit of file name length, but this limits file names to the traditional 255 NAME_MAX value. Signed-off-by: Shawn Landden <slandden@gmail.com> Link: https://patch.msgid.link/CA+49okq0ouJvAx0=txR_gyNKtZj55p3Zw4MB8jXZsGr4bEGjRA@mail.gmail.com Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 77449e4 commit 18a777e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/isofs/rock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ int get_rock_ridge_filename(struct iso_directory_record *de,
271271
break;
272272
}
273273
len = rr->len - 5;
274-
if (retnamlen + len >= 254) {
274+
if (retnamlen + len > NAME_MAX) {
275275
truncate = 1;
276276
break;
277277
}

0 commit comments

Comments
 (0)