[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1905 - GNUnet/src/applications/fs/ecrs
From: |
durner |
Subject: |
[GNUnet-SVN] r1905 - GNUnet/src/applications/fs/ecrs |
Date: |
Thu, 25 Aug 2005 09:25:00 -0700 (PDT) |
Author: durner
Date: 2005-08-25 09:24:55 -0700 (Thu, 25 Aug 2005)
New Revision: 1905
Modified:
GNUnet/src/applications/fs/ecrs/meta.c
Log:
don't rename "file" to "file.0"
Modified: GNUnet/src/applications/fs/ecrs/meta.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/meta.c 2005-08-25 08:46:59 UTC (rev
1904)
+++ GNUnet/src/applications/fs/ecrs/meta.c 2005-08-25 16:24:55 UTC (rev
1905)
@@ -802,21 +802,22 @@
for (i=strlen(renameTo)-1;i>=0;i--)
if (! isprint(renameTo[i]))
renameTo[i] = '_';
- if (0 == STAT(renameTo,
- &filestat)) {
- i = strlen(renameTo);
- j = 0;
- do {
- SNPRINTF(&renameTo[i],
- 19,
- ".%u",
- j++);
- if (j > 100000)
- break;
- } while (0 == STAT(renameTo,
- &filestat));
- }
if (0 != strcmp(renameTo, filename)) {
+ if (0 == STAT(renameTo,
+ &filestat)) {
+ i = strlen(renameTo);
+ j = 0;
+ do {
+ SNPRINTF(&renameTo[i],
+ 19,
+ ".%u",
+ j++);
+ if (j > 100000)
+ break;
+ } while (0 == STAT(renameTo,
+ &filestat));
+ }
+
if (0 != STAT(renameTo,
&filestat)) {
if (0 != RENAME(filename, renameTo))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1905 - GNUnet/src/applications/fs/ecrs,
durner <=