Skip to content

Commit

Permalink
[Server] Some additional fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jun 2, 2020
1 parent 2aab801 commit e51d6a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdSys/XrdSysFD.hh
Expand Up @@ -43,6 +43,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>

namespace
{
Expand All @@ -69,7 +70,7 @@ inline DIR* XrdSysFD_OpenDir(const char *path)
{int fd;
if ((fd = open(path, O_RDONLY|O_CLOEXEC)) < 0) return 0;
DIR *dP = fdopendir(fd);
if (!dP) {int rc = errno, close(fd); errno = rc;}
if (!dP) {int rc = errno; close(fd); errno = rc;}
return dP;
}

Expand Down

0 comments on commit e51d6a8

Please sign in to comment.