aboutsummaryrefslogtreecommitdiff
path: root/src/util/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/disk.c')
-rw-r--r--src/util/disk.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index 32667d554..47a0ed5c9 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -194,6 +194,7 @@ GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h)
194 return ((! h) || (h->fd == -1)) ? GNUNET_YES : GNUNET_NO; 194 return ((! h) || (h->fd == -1)) ? GNUNET_YES : GNUNET_NO;
195} 195}
196 196
197
197/** 198/**
198 * Get the size of an open file. 199 * Get the size of an open file.
199 * 200 *
@@ -1145,10 +1146,11 @@ GNUNET_DISK_filename_canonicalize (char *fn)
1145 { 1146 {
1146 c = *idx; 1147 c = *idx;
1147 1148
1148 if ((c == '/') ||(c == '\\') ||(c == ':') ||(c == '*') ||(c == '?') ||(c == 1149 if ((c == '/') || (c == '\\') || (c == ':') || (c == '*') || (c == '?') ||
1149 '"') 1150 (c ==
1151 '"')
1150 || 1152 ||
1151 (c == '<') ||(c == '>') ||(c == '|') ) 1153 (c == '<') || (c == '>') || (c == '|') )
1152 { 1154 {
1153 *idx = '_'; 1155 *idx = '_';
1154 } 1156 }
@@ -1465,6 +1467,7 @@ GNUNET_DISK_file_map (const struct GNUNET_DISK_FileHandle *h,
1465 return (*m)->addr; 1467 return (*m)->addr;
1466} 1468}
1467 1469
1470
1468/** 1471/**
1469 * Unmap a file 1472 * Unmap a file
1470 * @param h mapping handle 1473 * @param h mapping handle
@@ -1662,6 +1665,7 @@ GNUNET_DISK_pipe_close_end (struct GNUNET_DISK_PipeHandle *p,
1662 return ret; 1665 return ret;
1663} 1666}
1664 1667
1668
1665/** 1669/**
1666 * Detaches one of the ends from the pipe. 1670 * Detaches one of the ends from the pipe.
1667 * Detached end is a fully-functional FileHandle, it will 1671 * Detached end is a fully-functional FileHandle, it will