Bug#811548: /usr/bin/crontab in cron-systemd has syntax error

Stefan Midjich swehack at gmail.com
Tue Jan 19 18:54:30 GMT 2016


Package: systemd-cron
Version: 1.3.1+ds1-2

$ sudo crontab -u user cron.txt
Traceback (most recent call last):
  File "/usr/bin/crontab", line 94, in <module>
    action(cron_file, args)
  File "/usr/bin/crontab", line 81, in replace
    with open(cron_file, 'w'), open(infile, 'r') as out, inp:
NameError: global name 'inp' is not defined

I've attached a layman's patch. It's simply a matter of changing line 81 to
correct syntax.

$ uname -a
Linux vpn 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux

I'm using systemd.




-- 
Hälsningar / Greetings

http://Stefan.Midjich.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160119/56123a5f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crontab.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160119/56123a5f/attachment.bin>


More information about the Pkg-systemd-maintainers mailing list