extern tchar *
canonicalize_wim_path(const tchar *wim_path) _malloc_attribute;
-extern tchar *
-canonicalize_fs_path(const tchar *fs_path) _malloc_attribute;
-
#endif /* _WIMLIB_PATHS_H */
return stream_name + 1;
}
-/* Duplicate a path; return empty string for NULL input. */
-tchar *
-canonicalize_fs_path(const tchar *fs_path)
-{
- if (fs_path == NULL)
- fs_path = T("");
- return TSTRDUP(fs_path);
-}
-
/* Collapse and translate path separators, and strip trailing slashes. Doesn't
* add or delete a leading slash.
*
switch (cmds[i].op) {
case WIMLIB_UPDATE_OP_ADD:
cmds_copy[i].add.fs_source_path =
- canonicalize_fs_path(cmds[i].add.fs_source_path);
+ TSTRDUP(cmds[i].add.fs_source_path);
cmds_copy[i].add.wim_target_path =
canonicalize_wim_path(cmds[i].add.wim_target_path);
if (!cmds_copy[i].add.fs_source_path ||