fcntl: Don't access nonexistent optional argument.
commit8ac1b3f73baceb4a16e99504807d23d38e5123b1
authorBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 09:23:53 +0000 (6 11:23 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 09:23:53 +0000 (6 11:23 +0200)
tree12c30ffa03185e4c08dc9f0bee6ac2c5076793cd
parent6afeb7badcb76a509916ff4f0a3ae36599cae474
fcntl: Don't access nonexistent optional argument.

Reported by Frank Busse <f.busse@imperial.ac.uk> in
<https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.

* lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
don't consume an argument. For actions that take an 'int' argument,
consume an 'int' argument.
ChangeLog
lib/fcntl.c