Bug fix: Directory name mapping to ISO level 1 was too liberal if
iso_write_opts_set_allow_dir_id_ext() was enabled.
This commit is contained in:
parent
269e0b19a5
commit
ce35aefb32
@ -94,7 +94,7 @@ needs_transl:;
|
|||||||
} else if (img->max_37_char_filenames) {
|
} else if (img->max_37_char_filenames) {
|
||||||
isoname = iso_r_fileid(ascii_name, 36, relaxed, force_dots);
|
isoname = iso_r_fileid(ascii_name, 36, relaxed, force_dots);
|
||||||
} else if (img->iso_level == 1) {
|
} else if (img->iso_level == 1) {
|
||||||
if (relaxed || !force_dots) {
|
if (relaxed) {
|
||||||
if (strchr(ascii_name, '.') == NULL)
|
if (strchr(ascii_name, '.') == NULL)
|
||||||
max_len = 8;
|
max_len = 8;
|
||||||
else
|
else
|
||||||
@ -102,7 +102,7 @@ needs_transl:;
|
|||||||
isoname = iso_r_fileid(ascii_name, max_len, relaxed,
|
isoname = iso_r_fileid(ascii_name, max_len, relaxed,
|
||||||
force_dots);
|
force_dots);
|
||||||
} else {
|
} else {
|
||||||
isoname = iso_1_fileid(ascii_name);
|
isoname = iso_1_fileid(ascii_name, force_dots);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (relaxed || !force_dots) {
|
if (relaxed || !force_dots) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Vreixo Formoso
|
* Copyright (c) 2007 Vreixo Formoso
|
||||||
* Copyright (c) 2009 Thomas Schmitt
|
* Copyright (c) 2009 - 2012 Thomas Schmitt
|
||||||
*
|
*
|
||||||
* This file is part of the libisofs project; you can redistribute it and/or
|
* This file is part of the libisofs project; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License version 2
|
* modify it under the terms of the GNU General Public License version 2
|
||||||
@ -124,8 +124,10 @@ char *iso_r_dirid(const char *src, int size, int relaxed);
|
|||||||
*
|
*
|
||||||
* @param src
|
* @param src
|
||||||
* The identifier, in ASCII encoding.
|
* The identifier, in ASCII encoding.
|
||||||
|
* @param force_dots
|
||||||
|
* If 1 then prepend empty extension by SEPARATOR1 = '.'
|
||||||
*/
|
*/
|
||||||
char *iso_1_fileid(const char *src);
|
char *iso_1_fileid(const char *src, int force_dots);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a level 2 file identifier.
|
* Create a level 2 file identifier.
|
||||||
|
Loading…
Reference in New Issue
Block a user