Skip to content

Commit 2c8e11d

Browse files
committed
fix file cache so we do not try to remove a file that was cleaned
see #33; release 1.4.4.2 Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
1 parent 2d9fd92 commit 2c8e11d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
04/16/2022
2+
- fix file cache so we do not try to remove a file that was cleaned just before; see #33
23
- fix tests for client_secret_jwt and private_key_jwt so encoded JWT comparison works for cjose >= 0.6.2
4+
- release 1.4.4.2
35

46
03/06/2022
57
- add support for OpenSSL 3.0; closes #31

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([liboauth2],[1.5.0dev],[hans.zandbelt@zmartzone.eu])
1+
AC_INIT([liboauth2],[1.4.4.2],[hans.zandbelt@zmartzone.eu])
22

33
AM_INIT_AUTOMAKE([foreign no-define subdir-objects])
44
AC_CONFIG_MACRO_DIR([m4])

src/cache/file.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ static bool oauth2_cache_file_set(oauth2_log_t *log, oauth2_cache_t *cache,
497497
_oauth2_cache_files_clean(log, impl);
498498

499499
if (value == NULL) {
500-
rc = _oauth2_cache_file_remove(log, path);
500+
if (access(path, F_OK) == 0)
501+
rc = _oauth2_cache_file_remove(log, path);
501502
goto unlock;
502503
}
503504

0 commit comments

Comments
 (0)