1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$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 */
|