projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb41db7
)
LRN: 0006-Use-plibc-to-convert-dir-separators.patch
author
Christian Grothoff
<christian@grothoff.org>
Fri, 5 Aug 2011 21:16:38 +0000
(21:16 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 5 Aug 2011 21:16:38 +0000
(21:16 +0000)
src/fs/fs_file_information.c
patch
|
blob
|
history
diff --git
a/src/fs/fs_file_information.c
b/src/fs/fs_file_information.c
index e920bf46bfdd321e2002cc3d46d3bcc350b50a4c..62ae285d80f167cc470a78fb39a6b867a525757c 100644
(file)
--- a/
src/fs/fs_file_information.c
+++ b/
src/fs/fs_file_information.c
@@
-149,6
+149,9
@@
GNUNET_FS_file_information_create_from_file (struct GNUNET_FS_Handle *h,
struct GNUNET_FS_FileInformation *ret;
const char *fn;
const char *ss;
+#if WINDOWS
+ char fn_conv[MAX_PATH];
+#endif
if (0 != STAT (filename, &sbuf))
{
@@
-176,7
+179,12
@@
GNUNET_FS_file_information_create_from_file (struct GNUNET_FS_Handle *h,
return NULL;
ret->h = h;
ret->filename = GNUNET_strdup (filename);
+#if !WINDOWS
fn = filename;
+#else
+ plibc_conv_to_win_path (filename, fn_conv);
+ fn = fn_conv;
+#endif
while (NULL != (ss = strstr (fn,
DIR_SEPARATOR_STR)))
fn = ss + 1;