Package: powerpc-ibm-utils
Version: 1.3.2-1
Severity: normal

On this G4 powermac, when i run "ofpathname /dev/sda" as root, i get this 
warning:

/usr/sbin/ofpathname: line 812: warning: command substitution: ignored null 
byte in input


if i use "bash -x $(which ofpathname) /dev/sda" it shows me:

++ /bin/cat /sys/devices/pci0002:24/0002:24:0d.0/devspec
+ OF_PATH=/pci@f4000000/ata-6@d
+ [[ -z /pci@f4000000/ata-6@d ]]
+ local vdev=/pci@f4000000
+ local fc=/pci@f4000000/ata-6
+ fc=ata-6
+ [[ -e /proc/device-tree/pci@f4000000/ata-6@d/device_type ]]
++ /bin/cat /proc/device-tree/pci@f4000000/ata-6@d/device_type
/usr/sbin/ofpathname: line 812: warning: command substitution: ignored null 
byte in input
+ devtype=ata


and indeed, there is a trailing NUL byte there:

0 root@host:~# hd < /proc/device-tree/pci@f4000000/ata-6@d/device_type
00000000  61 74 61 00                                       |ata.|
00000004
0 root@host:~# 


ofpathname should probably be clever enough to deal with that without emitting 
the warning.

        --dkg




-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 4.17.0-3-powerpc-smp (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages powerpc-ibm-utils depends on:
ii  bash           4.4.18-3.1
ii  bc             1.07.1-2+b1
ii  libc6          2.27-3
ii  librtas2       2.0.0-2
ii  librtasevent2  2.0.0-2
ii  zlib1g         1:1.2.11.dfsg-1

powerpc-ibm-utils recommends no packages.

Versions of packages powerpc-ibm-utils suggests:
pn  ipmitool    <none>
pn  sysfsutils  <none>

-- no debconf information

Reply via email to