diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-09 02:03:36 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-09 02:03:36 -0400 |
| commit | 33dc91ee4baa88aa678af0cb23cdd417c5a1144b (patch) | |
| tree | b60d94d456af4a1eab8836831950d68b22093b20 | |
| parent | f9dcabc7cc5b098e7e6b7e0951dcd7467fdcece0 (diff) | |
| download | stasis-33dc91ee4baa88aa678af0cb23cdd417c5a1144b.tar.gz | |
Clear errno on touch
| -rw-r--r-- | src/lib/core/conda.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/core/conda.c b/src/lib/core/conda.c index de6130f..c9be7a3 100644 --- a/src/lib/core/conda.c +++ b/src/lib/core/conda.c @@ -58,6 +58,9 @@ int micromamba(const struct MicromambaInfo *info, char *command, ...) { char rcpath[PATH_MAX]; sprintf(rcpath, "%s/.condarc", info->conda_prefix); touch(rcpath); + if (errno == ENOENT) { + errno = 0; + } setenv("CONDARC", rcpath, 1); setenv("MAMBA_ROOT_PREFIX", info->conda_prefix, 1); |
