• R
    fix errno value for getcwd when size argument is zero · 4fb7df12
    Rich Felker 提交于
    based on patch by Michael Forney. at the same time, I've changed the
    if branch to be more clear, avoiding the comma operator.
    
    the underlying issue is that Linux always returns ERANGE when size is
    too short, even when it's zero, rather than returning EINVAL for the
    special case of zero as required by POSIX.
    4fb7df12
getcwd.c 353 字节