[Bug 1779767] Re: Default cron PATH does not include /snap/bin

Launchpad Bug Tracker 1779767 at bugs.launchpad.net
Tue Mar 16 16:55:19 UTC 2021


This bug was fixed in the package anacron - 2.3-30ubuntu2

---------------
anacron (2.3-30ubuntu2) hirsute; urgency=medium

  * Do not override PATH in anacrontab and cron.d anymore (LP: #1779767).
    - The latter change is needed because anacron when invoked by cron should
      inherit cron's PATH and not it's cron.d snippet.
    - This does not work on sysvinit, where it will now produce the wrong
      result because it inherits the init script's PATH variable, so it's
      not possible to forward to Debian

 -- Julian Andres Klode <juliank at ubuntu.com>  Mon, 15 Mar 2021 16:58:18
+0100

** Changed in: anacron (Ubuntu Hirsute)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/1779767

Title:
  Default cron PATH does not include /snap/bin

Status in anacron package in Ubuntu:
  Fix Released
Status in cron package in Ubuntu:
  Fix Committed
Status in anacron source package in Bionic:
  Confirmed
Status in cron source package in Bionic:
  Confirmed
Status in anacron source package in Focal:
  Confirmed
Status in cron source package in Focal:
  Confirmed
Status in anacron source package in Groovy:
  Confirmed
Status in cron source package in Groovy:
  Confirmed
Status in anacron source package in Hirsute:
  Fix Released
Status in cron source package in Hirsute:
  Fix Committed

Bug description:
  I recently changed from a .deb install of LXD to a snap, and was
  surprised that one of my crontab scripts stopped working.

  I see that $PATH in a cron script only contains "/usr/bin:/bin",
  whereas my default shell also includes "/snap/bin".

  It seems to me that for the best user experience with snaps,
  "/snap/bin" should be part of the default $PATH in cron.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: cron 3.0pl1-128.1ubuntu1
  ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
  Uname: Linux 4.15.0-20-generic x86_64
  NonfreeKernelModules: kpatch_livepatch_Ubuntu_4_15_0_20_21_generic_40 kpatch_livepatch_Ubuntu_4_15_0_20_21_generic_39 livepatch_livepatch_Ubuntu_4_15_0_20_21_generic_ zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.9-0ubuntu7.2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jul  2 14:30:06 2018
  InstallationDate: Installed on 2017-12-20 (194 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20171219)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cron
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/1779767/+subscriptions



More information about the foundations-bugs mailing list