Allow longer server names; fixes (temporarily) a buffer overflow.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Sat, 24 Apr 2010 02:46:13 +0000 (19:46 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Sat, 24 Apr 2010 02:46:13 +0000 (19:46 -0700)
TBBT/trace_play/Makefile
TBBT/trace_play/sfs_c_def.h

index 3eb7fb3..c62e74d 100644 (file)
@@ -199,7 +199,7 @@ sfs3:       $(V3_HDR) $(M_HDR) $(V3_OBJ) $(C_OBJ) \
                $(CC) -lpthread -o $@ $(LDFLAGS) $(V3_OBJ) $(C_OBJ) $(C_COMMON_OBJ) \
                        $(M_COMMON_OBJ) $(M_MSG_OBJ) $(RPCLIB) $(LIBS) \
                        $(EXTRA_LIBS) 
-               chmod 4555 sfs3
+               chmod 755 sfs3
 
 sfs3.full_speed:       $(V3_HDR) $(M_HDR) $(V3_OBJ) $(C_OBJ) \
                $(C_COMMON_OBJ) $(M_COMMON_OBJ) $(M_MSG_OBJ) $(RPCLIB)
index e35e73d..c4809a9 100644 (file)
@@ -77,9 +77,9 @@
 #include <netdb.h>
 
 #define SFS_MIN_RES            100             /* 100 usec resolution */
-#define        SFS_MAXNAMLEN           32              /* max test file name length */
+#define        SFS_MAXNAMLEN           128             /* max test file name length */
 #define        SFS_MAXPATHLEN          1024            /* max test path name length */
-#define HOSTNAME_LEN           31              /* length of client's hostname */
+#define HOSTNAME_LEN           63              /* length of client's hostname */
 
 #include "sfs_c_nfs.h"