Skip to content

Commit cddca02

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 5b48d9e commit cddca02

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
@@ -325,6 +325,8 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
325325
err = f_dupfd(arg, filp, 0);
326326
break;
327327
case F_DUPFD_CLOEXEC:
328+
if (arg >= 1024)
329+
arg = 0; /* Lol libwebrtc */
328330
err = f_dupfd(arg, filp, O_CLOEXEC);
329331
break;
330332
case F_GETFD:

0 commit comments

Comments
 (0)