diff --git a/pkg/deb/changelog b/pkg/deb/changelog index 911f1316..b32867b2 100644 --- a/pkg/deb/changelog +++ b/pkg/deb/changelog @@ -1,3 +1,9 @@ +libnvidia-container (1.12.0~rc.4-1) experimental; urgency=medium + + * Fix bug when checking whether files exist on file creation from 1.12.0-rc.2 + + -- NVIDIA CORPORATION Wed, 18 Jan 2023 16:50:59 +0100 + libnvidia-container (1.12.0~rc.3-1) experimental; urgency=medium * Bump version to 1.12.0-rc.3 diff --git a/pkg/rpm/SPECS/libnvidia-container.spec b/pkg/rpm/SPECS/libnvidia-container.spec index 95d871e4..cb463e73 100644 --- a/pkg/rpm/SPECS/libnvidia-container.spec +++ b/pkg/rpm/SPECS/libnvidia-container.spec @@ -99,6 +99,9 @@ This package contains command-line tools that facilitate using the library. %{_bindir}/* %changelog +* Wed Jan 18 2023 NVIDIA CORPORATION 1.12.0-0.1.rc.4 +- Fix bug when checking whether files exist on file creation from 1.12.0-rc.2 + * Fri Dec 09 2022 NVIDIA CORPORATION 1.12.0-0.1.rc.3 - Bump version to 1.12.0-rc.3 diff --git a/src/nvc.h b/src/nvc.h index 7acfa899..4f5652d3 100644 --- a/src/nvc.h +++ b/src/nvc.h @@ -33,8 +33,8 @@ extern "C" { // For stable releases, this should be defined as empty. // For release candidates, this should be defined with the format "rc.1" // The version string should also be updated accordingly, using a ~ separator where applicable. -#define NVC_TAG "rc.3" -#define NVC_VERSION "1.12.0~rc.3" +#define NVC_TAG "rc.4" +#define NVC_VERSION "1.12.0~rc.4" #define NVC_ARG_MAX 256 diff --git a/src/utils.c b/src/utils.c index 8fe32e4b..8ff6f269 100644 --- a/src/utils.c +++ b/src/utils.c @@ -524,7 +524,7 @@ file_create(struct error *err, const char *path, const char *data, uid_t uid, gi int rv = -1; // We check whether the file already exists with the required mode and skip the creation. - if (file_mode(err, path, &perm) == 0) { + if (data == NULL && file_mode(err, path, &perm) == 0) { if (perm == mode) { log_errf("The path %s alreay exists with the required mode; skipping create", path); return (0);