diff --git a/README b/README index 0dbd2aa18..e7023fd03 100644 --- a/README +++ b/README @@ -34,7 +34,7 @@ before calling SSL_new(); Though it's not recommended. *** end Note *** -CyaSSL Release 2.0.0rc3 (x/x/2011) +CyaSSL Release 2.0.0rc3 (9/28/2011) Release 2.0.0rc3 for CyaSSL has bug fixes and a few new features including: - updated autoconf support diff --git a/cyassl/test.h b/cyassl/test.h index 3a7d93757..d7f3db348 100644 --- a/cyassl/test.h +++ b/cyassl/test.h @@ -649,7 +649,8 @@ static INLINE void ChangeDirBack(int x) else strncpy(path, "./", MAX_PATH); - chdir(path); + if (chdir(path) < 0) + printf("chdir to %s failed\n", path); } /* does current dir contain str */ @@ -657,7 +658,10 @@ static INLINE int CurrentDir(const char* str) { char path[MAX_PATH]; - getcwd(path, sizeof(path)); + if (getcwd(path, sizeof(path)) == NULL) { + printf("no current dir?\n"); + return 0; + } if (strstr(path, str)) return 1;