This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Cygwin: Provide more COM devices
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin-patches at cygwin dot com
- Date: Sat, 14 Dec 2019 23:04:07 -0700
- Subject: Re: [PATCH] Cygwin: Provide more COM devices
- References: <87mudvwnrl.fsf@Rainer.invalid> <20191021081844.GH16240@calimero.vinschen.de> <87pniq7yvm.fsf@Rainer.invalid> <20191022071622.GM16240@calimero.vinschen.de> <87sgn4ai3n.fsf@Rainer.invalid> <871rt6rbvb.fsf@Rainer.invalid>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
On 2019-12-14 11:38, Achim Gratz wrote:
s[6] == 'd'?
> if (len > 7 && len < 12 && s[7] == 'd'
- if (len > 7 && len < 12 && s[7] == 'd'
+ if (len > 7 && len < 12 && s[DP_LEN - 1] == 'd'
> /* Generic check for /dev/sd[a-z] prefix */
> && strncmp (s, DISK_PREFIX, DP_LEN) == 0
> && s[DP_LEN] >= 'a' && s[DP_LEN] <= 'z')
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.