Commit de462c7
committed
modbus-rtu: don't use O_EXCL when opening the device
Quote from 'man 2 open':
-snip-
...
In general, the behavior of O_EXCL is undefined if it is used without O_CREAT.
...
-snap-
Since we don't create the device file here - we just want to open
(hopefully) existing ones - let's simply drop this flag to be on
the safe side.
Signed-off-by: Michael Heimpold <[email protected]>1 parent dde16d5 commit de462c7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| |||
0 commit comments