Skip to content

Commit 14b6c52

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 bc615f8 commit 14b6c52

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
@@ -454,6 +454,8 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
454454
err = f_dupfd(argi, filp, 0);
455455
break;
456456
case F_DUPFD_CLOEXEC:
457+
if (arg >= 1024)
458+
argi = 0; /* Lol libwebrtc */
457459
err = f_dupfd(argi, filp, O_CLOEXEC);
458460
break;
459461
case F_DUPFD_QUERY:

0 commit comments

Comments
 (0)