summaryrefslogtreecommitdiff
path: root/desktop/unx/source
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/unx/source')
-rw-r--r--desktop/unx/source/start.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index 525fe22927e0..b072f0f01c25 100644
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -323,10 +323,15 @@ get_pipe_path( rtl_uString *pAppPath )
if ( !pMd5hash )
rtl_uString_new( &pMd5hash );
- if ( access( PIPEDEFAULTPATH, R_OK|W_OK ) == 0 )
+ if ( access( PIPEDEFAULTPATH, W_OK ) == 0 )
rtl_uString_newFromAscii( &pResult, PIPEDEFAULTPATH );
- else
+ else if ( access( PIPEALTERNATEPATH, W_OK ) == 0 )
rtl_uString_newFromAscii( &pResult, PIPEALTERNATEPATH );
+ else
+ {
+ fprintf( stderr, "ERROR: no valid pipe path found.\n" );
+ exit( 1 );
+ }
rtl_uString_newFromAscii( &pTmp, "/OSL_PIPE_" );
rtl_uString_newConcat( &pResult, pResult, pTmp );