1 diff -urN nfs-server-2.2beta47.old/configure nfs-server-2.2beta47/configure
2 --- nfs-server-2.2beta47.old/configure 1999-06-11 12:06:04.000000000 +0200
3 +++ nfs-server-2.2beta47/configure 2005-03-24 22:24:39.000000000 +0100
5 echo $ac_n "(cached) $ac_c" 1>&6
7 if test "$cross_compiling" = yes; then
8 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
11 cat > conftest.$ac_ext <<EOF
12 #line 1967 "configure"
14 echo $ac_n "(cached) $ac_c" 1>&6
16 if test "$cross_compiling" = yes; then
17 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
18 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
20 cat > conftest.$ac_ext <<EOF
21 #line 2003 "configure"
23 echo $ac_n "(cached) $ac_c" 1>&6
25 if test "$cross_compiling" = yes; then
26 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
27 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
29 cat > conftest.$ac_ext <<EOF
30 #line 2039 "configure"
32 echo $ac_n "(cached) $ac_c" 1>&6
34 if test "$cross_compiling" = yes; then
35 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
36 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
38 cat > conftest.$ac_ext <<EOF
39 #line 2137 "configure"
41 echo $ac_n "(cached) $ac_c" 1>&6
43 if test "$cross_compiling" = yes; then
44 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
45 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
47 cat > conftest.$ac_ext <<EOF
48 #line 2173 "configure"
50 echo $ac_n "(cached) $ac_c" 1>&6
52 if test "$cross_compiling" = yes; then
53 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
54 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
56 cat > conftest.$ac_ext <<EOF
57 #line 2209 "configure"
59 echo $ac_n "(cached) $ac_c" 1>&6
61 if test "$cross_compiling" = yes; then
62 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
63 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
65 cat > conftest.$ac_ext <<EOF
66 #line 2245 "configure"
68 echo $ac_n "(cached) $ac_c" 1>&6
70 if test "$cross_compiling" = yes; then
71 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
72 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
74 cat > conftest.$ac_ext <<EOF
75 #line 2869 "configure"
78 # DEC Alpha running OSF/1
79 if test "$cross_compiling" = yes; then
80 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
81 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
83 cat > conftest.$ac_ext <<EOF
84 #line 3096 "configure"
87 if test -z "$space"; then
88 if test "$cross_compiling" = yes; then
89 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
90 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
92 cat > conftest.$ac_ext <<EOF
93 #line 3156 "configure"
95 echo $ac_n "(cached) $ac_c" 1>&6
97 if test "$cross_compiling" = yes; then
98 - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
99 + { echo "configure: error: can not run test program while cross compiling" 1>&2; }
101 cat > conftest.$ac_ext <<EOF
102 #line 3355 "configure"
103 --- nfs-server-2.2beta47.old/logging.c 1998-10-30 17:11:22.000000000 +0100
104 +++ nfs-server-2.2beta47/logging.c 2005-03-24 22:47:44.000000000 +0100
113 --- nfs-server-2.2beta47.old/fh.c 1999-11-10 10:41:14.000000000 +0100
114 +++ nfs-server-2.2beta47/fh.c 2005-03-24 22:50:50.000000000 +0100
124 #ifndef ENABLE_DEVTAB
125 psi_t dmajor, dminor;
127 -#if SIZEOF_DEV_T == 4
128 +#if (SIZEOF_DEV_T == 4)
129 /* This folds the upper 16 bits into bits 8..15, and
130 * the lower 16 bits into bits 0..7
132 --- nfs-server-2.2beta47.old/ugid_map.c 2005-03-24 22:34:56.000000000 +0100
133 +++ nfs-server-2.2beta47/ugid_map.c 2005-03-24 22:54:00.000000000 +0100
135 #define UGID_CHUNK0_BYTES (UGID_CHUNK * sizeof(idmap_t))
136 #define UGID_EXPIRE 300 /* 5 minutes */
139 - * Make sure we get the right size for ugid_t
141 -#if SIZEOF_UID_T != SIZEOF_GID_T
142 -#error Sorry, this code relies on sizeof(uid_t) == sizeof(gid_t)
145 -#define UGID_BITS (SIZEOF_UID_T * BITSPERBYTE)
146 +#define UGID_BITS (sizeof(uid_t) * BITSPERBYTE)
147 #define BITSTOLEVEL(b) ((UGID_BITS - (b)) / UGID_CHUNK_BITS - 1)
148 #define UGID_LOWER(id, b) ((id) & ~((1 << (b)) - 1))
149 #define UGID_UPPER(id, b) (((id + (1 << (b))) & ~((1 << (b)) - 1))-1)