Bug#988245: ocsinventory-agent: cron script uses /bin/sh and RANDOM

Malte Schirmacher malte.schirmacher at etecture.de
Sat May 8 16:50:08 BST 2021


Package: ocsinventory-agent
Version: 2:2.8-2
Severity: important
X-Debbugs-Cc: malte.schirmacher at etecture.de

Dear Maintainer,

the automatically installed cron.daily script uses /bin/sh.
Trying to access $RANDOM later might fail on many systems as this variable is
not present causing the cronjob not to be executed at all.
Explicitly using /bin/bash fixes this.


-- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-6-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_AUX
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ocsinventory-agent depends on:
ii  debconf [debconf-2.0]  1.5.76
ii  fdisk                  2.36.1-7
ii  libc6                  2.31-12
ii  libcrypt-ssleay-perl   0.73.06-1+b3
ii  libnet-ip-perl         1.26-2
ii  libproc-daemon-perl    0.23-1
ii  libwww-perl            6.53-1
ii  libxml-simple-perl     2.25-1
ii  perl                   5.32.1-4
ii  ucf                    3.0043
ii  util-linux             2.36.1-7

Versions of packages ocsinventory-agent recommends:
ii  dmidecode                   3.3-1
ii  e2fsprogs                   1.46.2-1
ii  hdparm                      9.60+ds-1
ii  libio-socket-ssl-perl       2.069-1
ii  liblwp-protocol-https-perl  6.10-1
ii  libnet-cups-perl            0.64-1+b3
ii  libnet-netmask-perl         1.9104-2
ii  libnet-snmp-perl            6.0.1-6
ii  libparse-edid-perl          1.0.7-1.1
ii  pciutils                    1:3.7.0-5

Versions of packages ocsinventory-agent suggests:
pn  libnmap-parser-perl  <none>
ii  nmap                 7.91+dfsg1+really7.80+dfsg1-2
pn  read-edid            <none>
ii  smartmontools        7.2-1

-- Configuration Files:
/etc/cron.daily/ocsinventory-agent changed [not included]

-- debconf information:
* ocsinventory-agent/server: 172.29.0.222
* ocsinventory-agent/method: http



More information about the pkg-perl-maintainers mailing list