Commit d55aba8
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 bb13443 commit d55aba8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
0 commit comments