Skip to content

Commit 17b4266

Browse files
author
cromwelldev
committed
Fix listing files with space(s) in name
1 parent 069c85a commit 17b4266

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

fs/ff13b/source/ff.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,7 @@ static FRESULT create_name ( /* FR_OK: successful, FR_INVALID_NAME: could not cr
32443244

32453245
for (;;) {
32463246
c = (BYTE)p[si++];
3247-
if (c <= ' ' || c == 0xFF) break; /* Break if end of the path name */
3247+
if (c < ' ' || c == 0xFF) break; /* Break if end of the path name */
32483248
if (c == '/' || c == '\\') { /* Break if a separator is found */
32493249
while (p[si] == '/' || p[si] == '\\') si++; /* Skip duplicated separator if exist */
32503250
break;

pc_tools/fatfs_test/Debug/src/subdir.mk

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
# Add inputs and outputs from these tool invocations to the build variables
66
C_SRCS += \
7-
/home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src/FatFSAccessor.c \
7+
/home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source/FatFSAccessor.c \
88
../src/FatFSTestHelper.c \
99
../src/diskio.c \
1010
../src/fatfs_test.c \
11-
/home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src/ff.c
11+
/home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source/ff.c
1212

1313
OBJS += \
1414
./src/FatFSAccessor.o \
@@ -26,24 +26,24 @@ C_DEPS += \
2626

2727

2828
# Each subdirectory must supply rules for building sources it contributes
29-
src/FatFSAccessor.o: /home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src/FatFSAccessor.c
29+
src/FatFSAccessor.o: /home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source/FatFSAccessor.c
3030
@echo 'Building file: $<'
3131
@echo 'Invoking: GCC C Compiler'
32-
gcc -D_LARGEFILE64_SOURCE=1 -D_PCSIM=1 -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I"/home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
32+
gcc -D_LARGEFILE64_SOURCE=1 -D_PCSIM=1 -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I"/home/cromwelldev/workspace/lpcmod_os/pc_tools/fatfs_test/src" -I"/home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
3333
@echo 'Finished building: $<'
3434
@echo ' '
3535

3636
src/%.o: ../src/%.c
3737
@echo 'Building file: $<'
3838
@echo 'Invoking: GCC C Compiler'
39-
gcc -D_LARGEFILE64_SOURCE=1 -D_PCSIM=1 -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I"/home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
39+
gcc -D_LARGEFILE64_SOURCE=1 -D_PCSIM=1 -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I"/home/cromwelldev/workspace/lpcmod_os/pc_tools/fatfs_test/src" -I"/home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
4040
@echo 'Finished building: $<'
4141
@echo ' '
4242

43-
src/ff.o: /home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src/ff.c
43+
src/ff.o: /home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source/ff.c
4444
@echo 'Building file: $<'
4545
@echo 'Invoking: GCC C Compiler'
46-
gcc -D_LARGEFILE64_SOURCE=1 -D_PCSIM=1 -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I"/home/cromwelldev/workspace/lpcmod_os/fs/ff12b/src" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
46+
gcc -D_LARGEFILE64_SOURCE=1 -D_PCSIM=1 -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I"/home/cromwelldev/workspace/lpcmod_os/pc_tools/fatfs_test/src" -I"/home/cromwelldev/workspace/lpcmod_os/fs/ff13b/source" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
4747
@echo 'Finished building: $<'
4848
@echo ' '
4949

0 commit comments

Comments
 (0)