Skip to content

Commit

Permalink
[XrdSys] Fix typo in XrdSysFD.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jun 2, 2020
1 parent 5aea9d1 commit 87f89a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdSys/XrdSysFD.hh
Expand Up @@ -122,7 +122,7 @@ inline int XrdSysFD_Open(const char *path, int flags, mode_t mode)
inline DIR* XrdSysFD_OpenDir(const char *path)
{int fd = XrdSysFD_Open(path, O_RDONLY);
if (fd < 0) return 0;
fcntl(newfd, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFD, FD_CLOEXEC);
DIR *dP = fdopendir(fd);
if (!dP) {int rc = errno, close(fd); errno = rc;}
return dP;
Expand Down

0 comments on commit 87f89a5

Please sign in to comment.