mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add a mount time option which slightly relaxes checks for valid Joilet
extensions. PR: kern/23315 Reviewed by: adrian
This commit is contained in:
parent
6fb77fef4d
commit
c35e8e54cd
4 changed files with 6 additions and 2 deletions
|
|
@ -52,3 +52,4 @@ struct iso_args {
|
|||
#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
|
||||
#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
|
||||
#define ISOFSMNT_NOJOLIET 0x00000008 /* disable Joliet Ext.*/
|
||||
#define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */
|
||||
|
|
|
|||
|
|
@ -355,7 +355,8 @@ iso_mountfs(devvp, mp, p, argp)
|
|||
if (bcmp(sup->escape, "%/E", 3) == 0)
|
||||
joliet_level = 3;
|
||||
|
||||
if (isonum_711 (sup->flags) & 1)
|
||||
if ((isonum_711 (sup->flags) & 1) &&
|
||||
(argp->flags & ISOFSMNT_BROKENJOLIET) == 0)
|
||||
joliet_level = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,3 +52,4 @@ struct iso_args {
|
|||
#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
|
||||
#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
|
||||
#define ISOFSMNT_NOJOLIET 0x00000008 /* disable Joliet Ext.*/
|
||||
#define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */
|
||||
|
|
|
|||
|
|
@ -355,7 +355,8 @@ iso_mountfs(devvp, mp, p, argp)
|
|||
if (bcmp(sup->escape, "%/E", 3) == 0)
|
||||
joliet_level = 3;
|
||||
|
||||
if (isonum_711 (sup->flags) & 1)
|
||||
if ((isonum_711 (sup->flags) & 1) &&
|
||||
(argp->flags & ISOFSMNT_BROKENJOLIET) == 0)
|
||||
joliet_level = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue