Bug 147938 - [patch] mt(8): ioctl sign-extension warnings from some mt commands on 64-bit
Summary: [patch] mt(8): ioctl sign-extension warnings from some mt commands on 64-bit
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 12:40 UTC by martin
Modified: 2016-05-02 19:15 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (258 bytes, patch)
2010-06-17 12:40 UTC, martin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2010-06-17 12:40:05 UTC
On amd64, some of the mt commands cause a message to be logged to syslog, such as

+WARNING pid 31794 (mt): ioctl sign-extension ioctl ffffffff80046d08

Fix: The c_code field in the command structure in /usr/src/usr.bin/mt/mt.c needs to be unsigned long to match the type of the second argument to ioctl as in the attached patch.


Patch attached with submission follows:
How-To-Repeat: mt seteotmodel 1
Comment 1 Kurt Jaeger freebsd_committer 2016-05-02 19:15:01 UTC
Change was committed in r228619. Thanks!