Debian bug report logs - #1552
miscutils/fdisk.c small fix

Package: miscutils; Reported by: jdassen@WI.LeidenUniv.NL (J.H.M.Dassen); 25 days old.

Message received at debian-bugs:


From WI.LeidenUniv.NL!jdassen Fri Oct  6 01:10:58 1995
Return-Path: <jdassen@WI.LeidenUniv.NL>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t17ro-00062CC; Fri, 6 Oct 95 01:10 PDT
Received: from mailhost.WI.LeidenUniv.NL (zeus128.wi.leidenuniv.nl) by pixar.com with SMTP id AA09416
  (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Fri, 6 Oct 1995 01:10:28 -0700
Received: from sp2156a.wi.leidenuniv.nl (jdassen@sp2156a [132.229.128.4])
          by mailhost.WI.LeidenUniv.NL (8.6.10a/FHM-1.20-M) with ESMTP id JAA02769
          Fri, 6 Oct 1995 09:10:37 +0100 (MET)
From: jdassen@WI.LeidenUniv.NL (J.H.M.Dassen)
Organization: Leiden University,
              Dept. of Mathematics & Computer Science,
              The Netherlands
Received: from  (jdassen@localhost)
          by sp2156a.wi.leidenuniv.nl (8.6.10a/FHM-1.01-S) id JAA07440
          Fri, 6 Oct 1995 09:10:14 +0100 (MET)
Message-Id: <199510060810.JAA07440@sp2156a.wi.leidenuniv.nl>
Subject: miscutils/fdisk.c small fix
To: debian-bugs@pixar.com, bruce@pixar.com
Date: Fri, 6 Oct 1995 09:10:13 +0100 (MET)
Return-Receipt-To: jdassen@WI.LeidenUniv.NL
X-Home-Page: <URL:http://www.wi.leidenuniv.nl/home/jdassen>
X-Mailer: ELM [version 2.4 PL24 (modified)]
Content-Type: text
Content-Length: 945       

Package: miscutils
Version: 1.3-5

According to include-1.2.1's include/linux/hdreg.h HDIO_REQ is obselete 
and should be replaced by HDIO_GETGEO; it has been removed in 1.3.21. 

Please apply this fix and pass this on to the upstream maintainer:
-- CUT ME --
--- fdisk.c.bak Thu Oct  5 19:35:37 1995
+++ fdisk.c     Thu Oct  5 19:35:37 1995
@@ -469,7 +469,7 @@
        }
        if (SECTOR_SIZE != read(fd, buffer, SECTOR_SIZE))
                fatal(unable_to_read);
-       if (!ioctl(fd, HDIO_REQ, &geometry)) {
+       if (!ioctl(fd, HDIO_GETGEO, &geometry)) {
                heads = geometry.heads;
                sectors = geometry.sectors;
                cylinders = geometry.cylinders;
-- OUCH --

Ray
-- 
UNFAIR  Term applied to advantages enjoyed by other people which we tried 
to cheat them out of and didn't manage. See also DISHONESTY, SNEAKY, 
UNDERHAND and JUST LUCKY I GUESS.     
- The Hipcrime Vocab by Chad C. Mulligan  

Acknowledgement sent to jdassen@WI.LeidenUniv.NL (J.H.M.Dassen):
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#1552; Package miscutils. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov