makefs: diff reduction with NetBSD
Obtained from: NetBSD usr.sbin/makefs/cd9660.c 1.33
This commit is contained in:
parent
4f4087d25f
commit
be42e2a1a3
@ -1622,6 +1622,7 @@ cd9660_level1_convert_filename(const char *oldname, char *newname, int is_file)
|
||||
if (diskStructure.archimedes_enabled &&
|
||||
*oldname == ',' && strlen(oldname) == 4)
|
||||
break;
|
||||
|
||||
/* Enforce 12.3 / 8 */
|
||||
if (namelen == 8 && !found_ext)
|
||||
break;
|
||||
@ -1629,7 +1630,7 @@ cd9660_level1_convert_filename(const char *oldname, char *newname, int is_file)
|
||||
if (islower((unsigned char)*oldname))
|
||||
*newname++ = toupper((unsigned char)*oldname);
|
||||
else if (isupper((unsigned char)*oldname)
|
||||
|| isdigit((unsigned char)*oldname))
|
||||
|| isdigit((unsigned char)*oldname))
|
||||
*newname++ = *oldname;
|
||||
else
|
||||
*newname++ = '_';
|
||||
@ -1639,7 +1640,7 @@ cd9660_level1_convert_filename(const char *oldname, char *newname, int is_file)
|
||||
else
|
||||
namelen++;
|
||||
}
|
||||
oldname ++;
|
||||
oldname++;
|
||||
}
|
||||
if (is_file) {
|
||||
if (!found_ext && !diskStructure.omit_trailing_period)
|
||||
|
Loading…
Reference in New Issue
Block a user