mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 16:50:25 -04:00
makefs: Remove impossible if condition
This test is inside the else block for `if (*oldname == '.')`, so
*oldname cannot be '.' here.
Reviewed by: kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48243
(cherry picked from commit 788e1eb7c1)
This commit is contained in:
parent
999c7a888f
commit
302be497fc
1 changed files with 1 additions and 5 deletions
|
|
@ -1683,12 +1683,8 @@ cd9660_level2_convert_filename(iso9660_disk *diskStructure, const char *oldname,
|
|||
else if (isupper((unsigned char)*oldname) ||
|
||||
isdigit((unsigned char)*oldname))
|
||||
*newname++ = *oldname;
|
||||
else if (diskStructure->allow_multidot &&
|
||||
*oldname == '.') {
|
||||
*newname++ = '.';
|
||||
} else {
|
||||
else
|
||||
*newname++ = '_';
|
||||
}
|
||||
|
||||
if (found_ext)
|
||||
extlen++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue