From 416c9382dbdc9272f803a03ac3b064d8afee8fa6 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Fri, 23 Apr 2010 19:46:13 -0700 Subject: [PATCH] Allow longer server names; fixes (temporarily) a buffer overflow. --- TBBT/trace_play/Makefile | 2 +- TBBT/trace_play/sfs_c_def.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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" -- 2.20.1