e553684
editing_open: close fd after we've established its validity Merges: https://pagure.io/libuser/issue/26 The code used to first close(fd) and only then check if it's != -1. Reverse the logic so that the fd is only closed if valid.