Skip to content

Commit 230e026

Browse files
marcanjannau
authored andcommitted
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 <marcan@marcan.st>
1 parent ee912b1 commit 230e026

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
@@ -356,6 +356,8 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
356356
err = f_dupfd(argi, filp, 0);
357357
break;
358358
case F_DUPFD_CLOEXEC:
359+
if (arg >= 1024)
360+
argi = 0; /* Lol libwebrtc */
359361
err = f_dupfd(argi, filp, O_CLOEXEC);
360362
break;
361363
case F_DUPFD_QUERY:

0 commit comments

Comments
 (0)