diff options
| author | 2012-04-12 17:45:22 +0000 | |
|---|---|---|
| committer | 2012-04-12 17:45:22 +0000 | |
| commit | 08fd3d5889e09268918e4db39cdaf7623a7d504c (patch) | |
| tree | 622cf7d82d65018215250d28943f236214fdde7e /usr.sbin/nginx/src/core/ngx_string.h | |
| parent | In this case where dup2() extends the table using fdalloc, the newly (diff) | |
| download | wireguard-openbsd-08fd3d5889e09268918e4db39cdaf7623a7d504c.tar.xz wireguard-openbsd-08fd3d5889e09268918e4db39cdaf7623a7d504c.zip | |
use a shared stripping function for chroot and make sure
that the path starts with the chroot prefix before doing anything
with it
Diffstat (limited to 'usr.sbin/nginx/src/core/ngx_string.h')
| -rw-r--r-- | usr.sbin/nginx/src/core/ngx_string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/nginx/src/core/ngx_string.h b/usr.sbin/nginx/src/core/ngx_string.h index fa386ca72f0..e140fb86da8 100644 --- a/usr.sbin/nginx/src/core/ngx_string.h +++ b/usr.sbin/nginx/src/core/ngx_string.h @@ -227,5 +227,6 @@ void ngx_sort(void *base, size_t n, size_t size, #define ngx_value_helper(n) #n #define ngx_value(n) ngx_value_helper(n) +void ngx_strip_chroot(ngx_str_t *root); #endif /* _NGX_STRING_H_INCLUDED_ */ |
