diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-12-15 01:40:18 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-15 01:40:18 +0100 |
commit | 09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3 (patch) | |
tree | b6ae903223a8a30b9f49b1769f5cb856ab41a9bc /nsprpub/pr/src/pthreads/ptio.c | |
parent | 023af95abeb4a9bd61665f37fc8dec173e0f2f4a (diff) | |
download | UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar.gz UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar.lz UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.tar.xz UXP-09ef48bd005a7f9e97a3fe797a079fcf2b5e58d3.zip |
Update NSPR to 4.20
Diffstat (limited to 'nsprpub/pr/src/pthreads/ptio.c')
-rw-r--r-- | nsprpub/pr/src/pthreads/ptio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nsprpub/pr/src/pthreads/ptio.c b/nsprpub/pr/src/pthreads/ptio.c index f6aa56741..1549a905f 100644 --- a/nsprpub/pr/src/pthreads/ptio.c +++ b/nsprpub/pr/src/pthreads/ptio.c @@ -1750,7 +1750,12 @@ static PRStatus pt_Bind(PRFileDesc *fd, const PRNetAddr *addr) if (addr->raw.family == AF_UNIX) { /* Disallow relative pathnames */ - if (addr->local.path[0] != '/') + if (addr->local.path[0] != '/' +#if defined(LINUX) + /* Linux has abstract socket address support */ + && addr->local.path[0] != 0 +#endif + ) { PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); return PR_FAILURE; |