summaryrefslogtreecommitdiff
path: root/sal/osl/unx/pipe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/pipe.cxx')
-rw-r--r--sal/osl/unx/pipe.cxx4
1 files changed, 2 insertions, 2 deletions
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));
}