Skip to content

Directories named "0" are removed from path by fcm_internal #276

@accowa

Description

@accowa

Directories named "0" are unintentionally removed from paths by the internal version of catfile in fcm_internal. This patch will fix the issue:

diff --git FCM/bin/fcm_internal

@@ -520,7 +520,7 @@ sub catfile {
   my $path  = shift @names;

   for my $name (@names) {
-    $path .= '/' . $name if $name;
+    $path .= '/' . $name if ($name or $name eq 0);
   }

   return $path;

when applied to line 537 of the latest version. But it isn't clear why fcm_internal needs local copies of the File::Spec routines at all? Why not use the supported versions which don't have this issue and are already being used in many other parts of the package?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions