mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 23:46:27 -05:00
Adds the new "share" configuration option to allow to share the pool directory in Windows.
This commit is contained in:
parent
b10a1c890f
commit
3df99a03ee
12 changed files with 240 additions and 24 deletions
16
util.c
16
util.c
|
|
@ -1172,7 +1172,7 @@ void pathimport(char* dst, size_t size, const char* src)
|
|||
pathcpy(dst, size, src);
|
||||
|
||||
#ifdef _WIN32
|
||||
/* convert all Windows '\' to '/' */
|
||||
/* convert all Windows '\' to C '/' */
|
||||
while (*dst) {
|
||||
if (*dst == '\\')
|
||||
*dst = '/';
|
||||
|
|
@ -1181,6 +1181,20 @@ void pathimport(char* dst, size_t size, const char* src)
|
|||
#endif
|
||||
}
|
||||
|
||||
void pathexport(char* dst, size_t size, const char* src)
|
||||
{
|
||||
pathcpy(dst, size, src);
|
||||
|
||||
#ifdef _WIN32
|
||||
/* convert all C '/' to Windows '\' */
|
||||
while (*dst) {
|
||||
if (*dst == '/')
|
||||
*dst = '\\';
|
||||
++dst;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void pathprint(char* dst, size_t size, const char* format, ...)
|
||||
{
|
||||
size_t len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue