mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-17 16:22:59 +00:00
Revert changes to clay
This commit is contained in:
parent
01ab592b82
commit
76c15b7191
@ -388,17 +388,14 @@ find_tmp_path(char *buffer, size_t length)
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < var_count; ++i) {
|
||||
char *env = p_getenv(env_vars[i]);
|
||||
const char *env = getenv(env_vars[i]);
|
||||
if (!env)
|
||||
continue;
|
||||
|
||||
if (is_valid_tmp_path(env)) {
|
||||
strncpy(buffer, env, length);
|
||||
free(env);
|
||||
return 0;
|
||||
}
|
||||
|
||||
free(env);
|
||||
}
|
||||
|
||||
/* If the environment doesn't say anything, try to use /tmp */
|
||||
|
Loading…
Reference in New Issue
Block a user