Subject: bin/368: comsat uses un-cast lseek
To: None <gnats-admin>
From: Peter Galbavy <peter@alice.wonderland.org>
List: netbsd-bugs
Date: 07/27/1994 11:20:05
>Number:         368
>Category:       bin
>Synopsis:       comsat does not work on my "endian" sparc, cause lseek is incorrectly used
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 27 11:20:03 1994
>Originator:     Peter Galbavy
>Organization:
Wonderland
>Release:        NetBSD-1.0_BETA
>Environment:
NetBSD/sparc
System: NetBSD alice.wonderland.org 1.0_BETA NetBSD 1.0_BETA (DUMPTY) #5: Mon Jul 25 20:36:25 BST 1994 peter@alice.wonderland.org:/usr/src/sys/arch/sparc/compile/DUMPTY sparc

>Description:
When I use biff 'y' I always get given the first few lines of my
mailbox, not the incoming message. Afetr further investigation I
found consat is using lseek without including <unistd.h> and not
decalring lseek's args (only return value).

>How-To-Repeat:
Use 'biff y' on a big-endian machine and watch it repeat your first
e-mail over and over again.

>Fix:
I guess include <unistd.h> in comsat.c ?
>Audit-Trail:
>Unformatted:

------------------------------------------------------------------------------