Skip to content

Commit 081abc5

Browse files
committed
HACK: Lol libwebrtc
Remove this in a year or two, hopefully the Chromium/CEF ecosystem of fail will have caught up with their libwebrtc version by then. Signed-off-by: Hector Martin <[email protected]>
1 parent f3c60a2 commit 081abc5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/fcntl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
326326
err = f_dupfd(argi, filp, 0);
327327
break;
328328
case F_DUPFD_CLOEXEC:
329+
if (arg >= 1024)
330+
argi = 0; /* Lol libwebrtc */
329331
err = f_dupfd(argi, filp, O_CLOEXEC);
330332
break;
331333
case F_GETFD:

0 commit comments

Comments
 (0)