Your message dated Fri, 8 Dec 2017 14:09:09 +0100
with message-id
<cadstwjj3vr-7cyxo5hwhl7bafsdko85+4jowzgywvz4nvw4...@mail.gmail.com>
and subject line closing old bug
has caused the Debian Bug report #811548,
regarding /usr/bin/crontab in cron-systemd has syntax error
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
811548: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811548
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
*** /usr/bin/crontab 2016-01-19 19:29:29.898730543 +0100
--- ./crontab 2016-01-19 19:29:09.006736011 +0100
*************** def replace(cron_file, args):
*** 78,84 ****
out.write(sys.stdin.read())
else:
! with open(cron_file, 'w'), open(infile, 'r') as out, inp:
out.write(inp.read())
if __name__ == '__main__':
--- 78,84 ----
out.write(sys.stdin.read())
else:
! with open(cron_file, 'w') as out, open(infile, 'r') as inp:
out.write(inp.read())
if __name__ == '__main__':
--- End Message ---
--- Begin Message ---
This bug is already fixed in stable
and will never be fixed in oldstable.
Please upgrade to stable release "Stretch".
--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers