openbsd-ports/security/cfs/patches/patch-cattach_c
sturm 47b40eba3b update to cfs 1.4.1
CFS was actually broken since at least 3.2 or so, but should work now
again on 32-bit archs. 64-bit archs are still broken and won't be
fixed anytime soon.

I also set PERMIT_*=Yes, as the "no fee" part of the license is clearly
due to bad english.

xsa@ helped testing
2004-06-15 18:32:22 +00:00

15 lines
487 B
Plaintext

$OpenBSD: patch-cattach_c,v 1.1 2004/06/15 18:32:22 sturm Exp $
--- cattach.c.orig 2004-06-09 15:12:55.000000000 +0200
+++ cattach.c 2004-06-09 15:23:40.000000000 +0200
@@ -167,8 +167,8 @@ main(argc,argv)
sprintf(dir,"%s/%s",buf,dirarg);
} else
strcpy(dir,dirarg);
- sprintf(lname,"%s/..data",dir,1024);
- sprintf(kname,"%s/..k",dir,1024);
+ sprintf(lname,"%s/..data",dir);
+ sprintf(kname,"%s/..k",dir);
if (chdir(lname) >= 0)
strcpy(dir,lname);
else if (chdir(dir)<0) {