[quake3-bugzilla] [Bug 6021] errors in Unix-errorhandling

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Mon Sep 2 10:31:35 EDT 2013


https://bugzilla.icculus.org/show_bug.cgi?id=6021

--- Comment #4 from Joerg Dietrich <dietrich_joerg at t-online.de> ---
(In reply to comment #3)
> Ah, my apologies. I was on a different branch so hadn't got that change yet.
> 
> Anyway, it looks like your fix essentially reverts Thilo's fix:
> 
> commit daf71ca50217c21edadc511feca4d4e9cf98a51a
> Author: Thilo Schulz <thilo at tjps.eu>
> Date:   Sun Aug 25 12:00:30 2013 +0200
> 
>     Fix recursive crash when home path cannot be created
> 
> I guess he means that FS_CreatePath fatals when it fails which is obviously
> bad when you're already handling a crash. I guess the solution is to use
> Sys_Mkdir(dirpath)?

This makes sense! But Sys_Mkdir() only creates the specified directory.
It doesn't do recursion and it doesn't remove the the filename-part
of the path. But it shouldn't be to difficult to implement this
functionality with Sys_Mkdir().

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/quake3-bugzilla/attachments/20130902/4447e8ca/attachment.html>


More information about the quake3-bugzilla mailing list