broken str2file

View: New views
1 Messages — Rating Filter:   Alert me  

broken str2file

by Timur Alperovich-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The latest version of sfs1 from cvs has a bug in str2file, which causes syskey gen to fail. The argument passed to the mydirname function is incorrect. I attached the patch of the file to my email. I wasn't sure where a patch should be submitted thus sent it here.

Timur

[str2file.C.diff]

Index: str2file.C
===================================================================
RCS file: /cvs/sfs1/async/str2file.C,v
retrieving revision 1.14
diff -b -u -r1.14 str2file.C
--- str2file.C 16 Dec 2006 03:44:33 -0000 1.14
+++ str2file.C 8 Jun 2007 18:49:16 -0000
@@ -105,7 +105,7 @@
   if (fd < 0)
     return false;
 
-  str dir = mydirname (s);
+  str dir = mydirname (file);
   int dirfd = open (dir, O_RDONLY, 0);
   if (dirfd < 0) {
     warn ("%s: %m\n", dir.cstr ());

LightInTheBox - Buy quality products at wholesale price!