cvs commit: src/sbin/mknod mknod.c

Bruce Evans brde at optusnet.com.au
Thu Jun 14 07:01:31 UTC 2007


On Thu, 14 Jun 2007, Xin LI wrote:

> delphij     2007-06-14 03:16:16 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sbin/mknod           mknod.c
>  Log:
>  In the previous changeset a cast of myminor to u_int were
>  removed, which will cause problems on architectures where
>  longs are longer than ints, for instance,
>          "mknod foo c 0 0xffff00ff"
>  would fail in such cases.
>
>  Use a proper cast instead.
>
>  Prompted by:    bde

Thanks.

Er, it still has a wrong cast for the major number.

Bruce


More information about the cvs-src mailing list