8000
File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2579,8 +2579,8 @@ FRESULT create_name ( /* FR_OK: successful, FR_INVALID_NAME: could not create
2579
2579
if (w < 0x80 && chk_chr ("\"*:<>\?|\x7F" , w )) return FR_INVALID_NAME ; /* Reject illegal characters for LFN */
2580
2580
lfn [di ++ ] = w ; /* Store the Unicode character */
2581
2581
}
2582
+ cf = ((w < ' ' ) || ((w == '/' || w == '\\' ) && p [si + 1 ] < ' ' )) ? NS_LAST : 0 ; /* Set last segment flag if end of the path */
2582
2583
* path = & p [si ]; /* Return pointer to the next segment */
2583
- cf = (w < ' ' ) ? NS_LAST : 0 ; /* Set last segment flag if end of the path */
2584
2584
#if _FS_RPATH != 0
2585
2585
if ((di == 1 && lfn [di - 1 ] == '.' ) ||
2586
2586
(di == 2 && lfn [di - 1 ] == '.' && lfn [di - 2 ] == '.' )) { /* Is this segment a dot name? */
You can’t perform that action at this time.
0 commit comments