On Fri, 22 Aug 2003, Bruce A. Burdick, Jr. wrote:
>> Hi!
>> You can repeat the problem with Mozilla(BSD)/Entourage(OSX)/Mail(OSX):
>I can verify this: Using Entourage X, I created:

It's funny how one little word can make such a big difference. :-)

Here's the patch that fixes this bug:

diff -u -r1.1.1.1 depot.cc
--- src/depot.cc        18 Aug 2003 18:06:05 -0000      1.1.1.1
+++ src/depot.cc        22 Aug 2003 16:09:11 -0000
@@ -262,7 +262,7 @@
       } else if (entry.length() > source.length()
                 && entry[source.length()] == '.') {
        sourcename = entry;
-       destname = dest + entry.substr(dest.length());
+       destname = dest + entry.substr(source.length());
       } else continue;

       if (rename(sourcename.c_str(), destname.c_str()) != 0) {

Reply via email to