From: Michael Vrable Date: Sat, 24 Apr 2010 02:46:13 +0000 (-0700) Subject: Allow longer server names; fixes (temporarily) a buffer overflow. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=416c9382dbdc9272f803a03ac3b064d8afee8fa6;p=bluesky.git Allow longer server names; fixes (temporarily) a buffer overflow. --- diff --git a/TBBT/trace_play/Makefile b/TBBT/trace_play/Makefile index 3eb7fb3..c62e74d 100644 --- a/TBBT/trace_play/Makefile +++ b/TBBT/trace_play/Makefile @@ -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) diff --git a/TBBT/trace_play/sfs_c_def.h b/TBBT/trace_play/sfs_c_def.h index e35e73d..c4809a9 100644 --- a/TBBT/trace_play/sfs_c_def.h +++ b/TBBT/trace_play/sfs_c_def.h @@ -77,9 +77,9 @@ #include #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"