FreeBSD Bugzilla – Attachment 176599 Details for
Bug 214176
sysutils/ansible: add patch to fix cron module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysutils/ansible: cron module username handling
ansible-cron-username.patch (text/plain), 1.63 KB, created by
joe
on 2016-11-03 22:34:14 UTC
(
hide
)
Description:
sysutils/ansible: cron module username handling
Filename:
MIME Type:
Creator:
joe
Created:
2016-11-03 22:34:14 UTC
Size:
1.63 KB
patch
obsolete
>diff -r 92da1de2bf87 -r 04199aa47372 sysutils/ansible/Makefile >--- a/sysutils/ansible/Makefile Wed Nov 02 23:08:33 2016 -0700 >+++ b/sysutils/ansible/Makefile Thu Nov 03 14:07:50 2016 -0700 >@@ -3,6 +3,7 @@ > > PORTNAME= ansible > PORTVERSION?= 2.1.2.0 >+PORTREVISION= 1 > CATEGORIES= sysutils python > MASTER_SITES= http://releases.ansible.com/ansible/ > >diff -r 92da1de2bf87 -r 04199aa47372 sysutils/ansible/files/patch-lib_ansible_modules_core_system_cron.py >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/sysutils/ansible/files/patch-lib_ansible_modules_core_system_cron.py Thu Nov 03 14:07:50 2016 -0700 >@@ -0,0 +1,20 @@ >+--- lib/ansible/modules/core/system/cron.py.orig 2016-11-03 13:55:00.442295000 -0700 >++++ lib/ansible/modules/core/system/cron.py 2016-11-03 14:53:00.357627000 -0700 >+@@ -477,7 +477,7 @@ >+ return "%s -l %s" % (pipes.quote(CRONCMD), pipes.quote(self.user)) >+ elif platform.system() == 'HP-UX': >+ return "%s %s %s" % (CRONCMD , '-l', pipes.quote(self.user)) >+- elif os.getlogin() != self.user: >++ else: >+ user = '-u %s' % pipes.quote(self.user) >+ return "%s %s %s" % (CRONCMD , user, '-l') >+ >+@@ -489,7 +489,7 @@ >+ if self.user: >+ if platform.system() in ['SunOS', 'HP-UX', 'AIX']: >+ return "chown %s %s ; su '%s' -c '%s %s'" % (pipes.quote(self.user), pipes.quote(path), pipes.quote(self.user), CRONCMD, pipes.quote(path)) >+- elif os.getlogin() != self.user: >++ else: >+ user = '-u %s' % pipes.quote(self.user) >+ return "%s %s %s" % (CRONCMD , user, pipes.quote(path)) >+ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214176
: 176599