Package: util-linux
Version: 2.13.1.1-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I'm pretty sure this used to work, but on my amd64 system here,
fdisk fails on an mbr backup file:

|# ls -l test.mbr
|-rw-r--r-- 1 root root 512 2009-04-14 21:36 test.mbr
|# fdisk -l test.mbr
|# echo $?
|0
|# fdisk test.mbr
|
|Unable to read test.mbr

Also, I think it should return != 0 on error.

Strace shows it seems to read the contents just fine:

|open("test.mbr", O_RDWR)                = 3
|read(3, 
"\3741\300\216\3201\344\216\330\216\300\276\0|\277\0\6\271\0\1\363\245\276\356\7\260\10\352
 \6\0\0\200"..., 512) = 512
|uname({sys="Linux", node="nukunuku", ...}) = 0
|ioctl(3, BLKSSZGET, 0x7fff0361d24c)     = -1 ENOTTY (Inappropriate ioctl for 
device)
|fstat(3, {st_mode=S_IFREG|0644, st_size=512, ...}) = 0
|ioctl(3, 0x301, 0x7fff0361d230)         = -1 ENOTTY (Inappropriate ioctl for 
device)
|ioctl(3, BLKGETSIZE, 0x7fff0361d078)    = -1 ENOTTY (Inappropriate ioctl for 
device)
|lseek(3, 0, SEEK_SET)                   = 0
|read(3, 
"\3741\300\216\3201\344\216\330\216\300\276\0|\277\0\6\271\0\1\363\245\276\356\7\260\10\352
 \6\0\0\200"..., 8192) = 512
|[...]
|[locale reading calls for message translation]
|[...]
|write(2, "\n"..., 1
|)                    = 1
|write(2, "Unable to read test.mbr\n"..., 24Unable to read test.mbr
|) = 24


- -- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28.8 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages util-linux depends on:
ii  libc6                  2.9-4             GNU C Library: Shared libraries
ii  libncurses5            5.7+20081213-1    shared libraries for terminal hand
ii  libselinux1            2.0.65-5          SELinux shared libraries
ii  libslang2              2.1.3-3           The S-Lang programming library - r
ii  libuuid1               1.41.3-1          universally unique id library
ii  lsb-base               3.2-20            Linux Standard Base 3.2 init scrip
ii  tzdata                 2008h-2           time zone and daylight-saving time
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  console-tools            1:0.2.3dbs-65.1 Linux console and font utilities
ii  dosfstools               3.0.2-1         utilities for making and checking 
pn  util-linux-locales       <none>          (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJ5Ocn5q/seprH4LwRArlkAJ902HDmB5PZ1uHr2dC7brIsZPIOpQCfdPrD
74moS+J4zmwR1Plq70wh2Hk=
=KPdA
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to