ca5182745b
Patch via. Debian
32 lines
724 B
Text
32 lines
724 B
Text
$NetBSD: patch-ah,v 1.2 2006/08/05 13:30:26 adrianp Exp $
|
|
|
|
--- cfs_fh.c.orig 2006-08-05 14:21:22.000000000 +0100
|
|
+++ cfs_fh.c
|
|
@@ -289,7 +289,7 @@ doencrypt(k,s,l,salt,vect)
|
|
cfskey *k;
|
|
char *s;
|
|
int l;
|
|
- int salt;
|
|
+ u_long salt;
|
|
char *vect;
|
|
{
|
|
int i,j,smsize;
|
|
@@ -311,7 +311,7 @@ dodecrypt(k,s,l,salt,vect)
|
|
cfskey *k;
|
|
char *s;
|
|
int l;
|
|
- int salt;
|
|
+ u_long salt;
|
|
char *vect;
|
|
{
|
|
int i,j,smsize;
|
|
@@ -547,7 +547,9 @@ fhtofd(f,mode)
|
|
openfd=NULL;
|
|
}
|
|
|
|
+#if 0
|
|
if (mode==0) { mode=CFS_WRITE; }
|
|
+#endif
|
|
/* Phil Karn's hack for R/O file systems */
|
|
if ((fd=open(f->name,mode,0))<0 && errno == EROFS) {
|
|
mode = CFS_READ; /* Force read and try again */
|