Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Use fossil_path_free() instead of fossil_free() for names allocated (or not) by fossil_path_to_utf8(). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | preserve-case-on-add |
| Files: | files | file ages | folders |
| SHA3-256: |
a9fa7d3cfaff9f43d4bff11209dff51b |
| User & Date: | stephan 2024-04-10 20:27:29.554 |
Context
|
2024-04-11
| ||
| 12:38 | Adjust the "fossil add" command so that on systems with case-insensitive filenames, the named added to the repository is the operating-systems preferred case for the name. check-in: 78e63995be user: drh tags: trunk | |
|
2024-04-10
| ||
| 20:27 | Use fossil_path_free() instead of fossil_free() for names allocated (or not) by fossil_path_to_utf8(). Closed-Leaf check-in: a9fa7d3cfa user: stephan tags: preserve-case-on-add | |
| 20:09 | Adjust the "fossil add" command so that on systems with case-insensitive filenames, the named added to the repository is the operating-systems preferred case for the name. check-in: f1f7e27e0c user: drh tags: preserve-case-on-add | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
1325 1326 1327 1328 1329 1330 1331 |
}else{
char *zSubDir = mprintf("%s/%s", zDir, zUtf8);
char *zSubPath = file_case_preferred_name(zSubDir, &zPath[i+1]);
zResult = mprintf("%s/%s", zUtf8, zSubPath);
fossil_free(zSubPath);
fossil_free(zSubDir);
}
| | | | 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 |
}else{
char *zSubDir = mprintf("%s/%s", zDir, zUtf8);
char *zSubPath = file_case_preferred_name(zSubDir, &zPath[i+1]);
zResult = mprintf("%s/%s", zUtf8, zSubPath);
fossil_free(zSubPath);
fossil_free(zSubDir);
}
fossil_path_free(zUtf8);
break;
}
fossil_path_free(zUtf8);
}
closedir(d);
}
fossil_path_free(zNative);
if( zResult==0 ) zResult = fossil_strdup(zPath);
return zResult;
}
|
| ︙ | ︙ |