Problems with Arla-0.3 on FreeBSD

Assar Westerlund assar at sics.se
Tue Mar 24 02:20:14 CET 1998


Mark A Gebert <geeb at merit.edu> writes:
> Bingo. I can get in. The "real" client ignores those bits.

On directories.  How's that for consistency?

Anyways, here is the obvious patch.

/assar


Index: arlad/messages.c
===================================================================
RCS file: /usr/local/cvsroot/arla/arlad/messages.c,v
retrieving revision 1.45
retrieving revision 1.47
diff -u -w -u -w -r1.45 -r1.47
--- messages.c	1998/03/22 01:37:59	1.45
+++ messages.c	1998/03/24 01:18:49	1.47
@@ -37,7 +37,7 @@
  */
 
 #include "arla_local.h"
-RCSID("$Id: messages.c,v 1.45 1998/03/22 01:37:59 lha Exp $");
+RCSID("$Id: messages.c,v 1.47 1998/03/24 01:18:49 assar Exp $");
 
 #include <xfs_message.h>
 
@@ -155,14 +155,9 @@
     u_char ret = 0;
 
     if (status->FileType == TYPE_DIR) {
-	if (ar & ALIST) {
-	    if (status->UnixModeBits & S_IRUSR)
-		ret |= XFS_RIGHT_R;
-	    if (status->UnixModeBits & S_IXUSR)
-		ret |= XFS_RIGHT_X;
-	}
-	if ((ar & (AINSERT | ADELETE)) && 
-	    (status->UnixModeBits & S_IWUSR))
+	if (ar & ALIST)
+	    ret |= XFS_RIGHT_R | XFS_RIGHT_X;
+	if (ar & (AINSERT | ADELETE))
 	    ret |= XFS_RIGHT_W;
     } else {
 	if ((ar & AREAD) && (status->UnixModeBits & S_IRUSR))





More information about the Arla-drinkers mailing list