gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2373 - GNUnet/src/applications/fs/fsui


From: durner
Subject: [GNUnet-SVN] r2373 - GNUnet/src/applications/fs/fsui
Date: Thu, 22 Dec 2005 11:28:05 -0800 (PST)

Author: durner
Date: 2005-12-22 11:28:00 -0800 (Thu, 22 Dec 2005)
New Revision: 2373

Modified:
   GNUnet/src/applications/fs/fsui/download.c
Log:
replace .. in filenames

Modified: GNUnet/src/applications/fs/fsui/download.c
===================================================================
--- GNUnet/src/applications/fs/fsui/download.c  2005-12-22 19:23:05 UTC (rev 
2372)
+++ GNUnet/src/applications/fs/fsui/download.c  2005-12-22 19:28:00 UTC (rev 
2373)
@@ -55,6 +55,7 @@
   FSUI_DownloadList * pos;
   char * filename;
   char * fullName;
+  char * dotdot;
 
   if (isRoot == YES)
     return OK; /* namespace ad, ignore */
@@ -84,8 +85,12 @@
                    + strlen(filename));
   strcpy(fullName, parent->filename);
   strcat(fullName, GNUNET_DIRECTORY_EXT);
+  while(dotdot = strstr(fullname, ".."))
+    dotdot[0] = dotdot[1] = '_';
   mkdirp(fullName);
   strcat(fullName, DIR_SEPARATOR_STR);
+  while(dotdot = strstr(filename, ".."))
+    dotdot[0] = dotdot[1] = '_';
   strcat(fullName, filename);
   FREE(filename);
 #if DEBUG_DTM





reply via email to

[Prev in Thread] Current Thread [Next in Thread]