# HG changeset patch # User Matti Hamalainen # Date 1670418216 -7200 # Node ID 6b778871f770cf803aa37d272d6b05a61afd84fb # Parent ca837a4417f55f08c63a15af5f3d9b1080855906 Return actual errno status in case of fopen() failure. diff -r ca837a4417f5 -r 6b778871f770 th_ioctx_stdio.c --- a/th_ioctx_stdio.c Wed Dec 07 15:03:09 2022 +0200 +++ b/th_ioctx_stdio.c Wed Dec 07 15:03:36 2022 +0200 @@ -15,7 +15,7 @@ { ctx->data = (void *) fopen(ctx->filename, ctx->mode); ctx->status = th_get_error(); - return (ctx->data != NULL) ? THERR_OK : THERR_FOPEN; + return (ctx->data != NULL) ? THERR_OK : ctx->status; }