Skip to content

Commit

Permalink
(#1408) Add internal (scope) wrapper to secure_getenv
Browse files Browse the repository at this point in the history
- this will remove usage of `secure_getenv` in contrib code
- `secure_get_env` is not supported by musl version prior 1.1.24

Fixes #1408
  • Loading branch information
michalbiesek committed Apr 5, 2023
1 parent f0f7ea5 commit e5eda4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/redefine_syms.lst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ read scopelibc_read
readdir scopelibc_readdir
realloc scopelibc_realloc
recvfrom scopelibc_recvfrom
secure_getenv scope_secure_getenv
select scopelibc_select
sendto scopelibc_sendto
setbuf scopelibc_setbuf
Expand Down
5 changes: 5 additions & 0 deletions src/scopestdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,3 +1304,8 @@ int
scope_mq_getattr(mqd_t mqd, struct mq_attr *attr) {
return scopelibc_mq_getattr(mqd, attr);
}

char *
scope_secure_getenv(const char *name) {
return getenv(name);
}

0 comments on commit e5eda4c

Please sign in to comment.