• Odin Ugedal's avatar
    Fix closing of dirs in doSafeMakeDir · 5f7e5406
    Odin Ugedal authored
    This fixes the issue where "childFD" from syscall.Openat is assigned to
    a local variable inside the for loop, instead of the correct one in the
    function scope. This results in that when trying to close the "childFD"
    in the function scope, it will be equal to "-1", instead of the correct
    value.
    5f7e5406