From 87c011134031374cf9104ec2fc39ef121d8a6802 Mon Sep 17 00:00:00 2001 From: Hank Leininger Date: Fri, 26 Feb 2016 20:23:03 -0500 Subject: tdf#98210 do not require R_OK for pipe dir Also better error handling if pipe dirs are really not usable. Change-Id: I1c865b9a9f1f08d2cffd07343494feca585ec75e Reviewed-on: https://gerrit.libreoffice.org/22727 Tested-by: Jenkins Reviewed-by: jan iversen --- sal/osl/unx/pipe.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal/osl/unx/pipe.cxx') diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx index 93213952e382..37ac7ec91e8f 100644 --- a/sal/osl/unx/pipe.cxx +++ b/sal/osl/unx/pipe.cxx @@ -166,11 +166,11 @@ oslPipe SAL_CALL osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions bool bNameTooLong = false; oslPipe pPipe; - if (access(PIPEDEFAULTPATH, R_OK|W_OK) == 0) + if (access(PIPEDEFAULTPATH, W_OK) == 0) { strncpy(name, PIPEDEFAULTPATH, sizeof(name)); } - else if (access(PIPEALTERNATEPATH, R_OK|W_OK) == 0) + else if (access(PIPEALTERNATEPATH, W_OK) == 0) { strncpy(name, PIPEALTERNATEPATH, sizeof(name)); } -- cgit