diff options
| author | Shawn Landden <slandden@gmail.com> | 2026-01-27 09:05:52 -0800 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-01-28 09:49:14 +0100 |
| commit | 18a777eee28938a70a7fb103e37ff4ba56e5b673 (patch) | |
| tree | e327891b618e37ea3d8b455afb31231a00b51d1d /fs | |
| parent | 77449e453dfc006ad738dec55374c4cbc056fd39 (diff) | |
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>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/isofs/rock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/isofs/rock.c b/fs/isofs/rock.c index 576498245b9d..6fe6dbd0c740 100644 --- a/fs/isofs/rock.c +++ b/fs/isofs/rock.c @@ -271,7 +271,7 @@ repeat: break; } len = rr->len - 5; - if (retnamlen + len >= 254) { + if (retnamlen + len > NAME_MAX) { truncate = 1; break; } |
