Re: patchfs: Fixed leading ./ bug



Leonard den Ottolander wrote:
Hello Roland,
On Fri, 2004-10-22 at 14:58, Roland Illig wrote:

+  $fname =~ s,/+,/,g;
? Can you just remove the plus sign?

Why do you want to replace every "/" with "/"?

+  $fname =~ s,/\.$,,;
Why is this needed?

Because "dir/subdir/." and "dir/subdir" are handled the same in the rest of mc.

    $file=~s/^(PATCH-(CREATE|REMOVE)\/)?(.*)\.diff$/$3/;
+    $file = mc_canonicalize_path ($file);

What happened to the ".diff$" part?

I don't know. That has not been me.

Roland



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