diff options
author | imp <imp@FreeBSD.org> | 2009-01-02 08:21:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-01-02 08:21:21 +0000 |
commit | 636826531a5b073e0d2a69852b90b3230ccbff11 (patch) | |
tree | 30b661c3e9ce87cbdf6b18739fe2a23adf2382c1 /usr.sbin/fwcontrol | |
parent | f34069b1078c5bab5cb29552c2670b3a50ce9d6d (diff) | |
download | FreeBSD-src-636826531a5b073e0d2a69852b90b3230ccbff11.zip FreeBSD-src-636826531a5b073e0d2a69852b90b3230ccbff11.tar.gz |
Add fd = -1 after close when we detect the format so that subsequent
open_dev will reopen the device.
Diffstat (limited to 'usr.sbin/fwcontrol')
-rw-r--r-- | usr.sbin/fwcontrol/fwcontrol.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/fwcontrol/fwcontrol.c b/usr.sbin/fwcontrol/fwcontrol.c index b55cf2a..eabbc23 100644 --- a/usr.sbin/fwcontrol/fwcontrol.c +++ b/usr.sbin/fwcontrol/fwcontrol.c @@ -1065,6 +1065,7 @@ main(int argc, char **argv) if (recvfn == NULL) { /* guess... */ recvfn = detect_recv_fn(fd, TAG | CHANNEL); close(fd); + fd = -1; } snprintf(devbase, sizeof(devbase), "%s%d.0", device_string, current_board); if (open_dev(&fd, devbase) < 0) |