Skip Menu |

This queue is for tickets about the ClearCase-SyncTree CPAN distribution.

Report information
The Basics
Id: 33283
Status: new
Priority: 0/
Queue: ClearCase-SyncTree

People
Owner: Nobody in particular
Requestors: Rishabh.Gupta [...] eu.sony.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ClearCase::SyncTree ecs
Date: Fri, 15 Feb 2008 14:02:05 -0000
To: <bug-ClearCase-SyncTree [...] rt.cpan.org>
From: "Gupta, Rishabh" <Rishabh.Gupta [...] eu.sony.com>
Hi, I recently started experimenting with your Perl Module for importing a complete directory structure into a ClearCase Vob. I discovered a bug in there, which was preventing the library working on our setup. We had a file with a '+' in there, it's a legal character in windows. Unfortunately, when your ecs sub routine was doing the check, the '+' inside the filename turned into a special regular expression marker. I did a dirty fix by only checking for the '+' character, I should really check for all but I'm just trying to get it working on our setup. I just added the line "$match =~ s#\+#\\\+#g;" to the ecs function and it appears to have worked. I'm not sure if you're actively working on this, but just in case your are, I thought I should inform you. Many Thanks for your hard work in developing the Module. Regards, Rishabh sub ecs { my $file = shift; my $rc = 0; if (MSWIN) { if (opendir DIR, dirname($file)) { my $match = basename($file); $match =~ s#\+#\\\+#g; $rc = 1 if grep m%^$match$%, readdir DIR; closedir DIR; } } else { $rc = -e $file; } return $rc; } ************************************************************************ Rishabh Gupta Quality Assurance Engineer TeleVision Operations Europe Sony Village - Basingstoke ************************************************************************ TVOE, a division of Sony United Kingdom Limited A company registered in England and Wales Registered office: The Heights, Brooklands, Weybridge, Surrey, KT13 0XW Registered company number: 2422874 ************************************************************************ The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. This email and any response may be monitored by Sony to be in compliance with Sony�s global policies and standards