Debian Bug report logs - #702531
php5-common: Non-escaped semicolon in crontab

version graph

Package: php5-common; Maintainer for php5-common is (unknown);

Reported by: Jonathan Leroy <jonathan+ml@inikup.com>

Date: Thu, 7 Mar 2013 21:45:02 UTC

Severity: normal

Tags: moreinfo

Found in version php5/5.4.4-13

Done: Jonathan Leroy <jonathan+ml@inikup.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 07 Mar 2013 21:45:05 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Leroy <jonathan+ml@inikup.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 07 Mar 2013 21:45:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jonathan Leroy <jonathan+ml@inikup.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-common: Non-escaped semicolon in crontab
Date: Thu, 7 Mar 2013 22:39:38 +0100
Package: php5-common
Version: 5.4.4-13
Severity: important

Hi,

This package generate a /etc/cron.d/php5 which returns the following error :

/bin/sh: 1: -delete: not found

Triple backslashs before the last semicolon of command should fix this error :

[...] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
-ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir
fuser -s {} 2>/dev/null \\\; -delete

Thx,

Jonathan.


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.38-xenU-7648-x86_64-grsec (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-common depends on:
ii  dpkg    1.16.9
ii  libc6   2.13-38
ii  psmisc  22.19-1+deb7u1
ii  sed     4.2.1-10
ii  ucf     3.0025+nmu3

php5-common recommends no packages.

php5-common suggests no packages.

-- Configuration Files:
/etc/cron.d/php5 changed [not included]

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 07 Mar 2013 21:51:09 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 07 Mar 2013 21:51:09 GMT) (full text, mbox, link).


Message #10 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: Jonathan Leroy <jonathan+ml@inikup.com>, "702531@bugs.debian.org" <702531@bugs.debian.org>
Subject: Re: [php-maint] Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 7 Mar 2013 22:46:58 +0100
What default shell and cron are you using?

Ondřej Surý

On 7. 3. 2013, at 22:39, Jonathan Leroy <jonathan+ml@inikup.com> wrote:

> Package: php5-common
> Version: 5.4.4-13
> Severity: important
> 
> Hi,
> 
> This package generate a /etc/cron.d/php5 which returns the following error :
> 
> /bin/sh: 1: -delete: not found
> 
> Triple backslashs before the last semicolon of command should fix this error :
> 
> [...] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
> -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir
> fuser -s {} 2>/dev/null \\\; -delete
> 
> Thx,
> 
> Jonathan.
> 
> 
> -- System Information:
> Debian Release: 7.0
>  APT prefers testing
>  APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.2.38-xenU-7648-x86_64-grsec (SMP w/1 CPU core)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages php5-common depends on:
> ii  dpkg    1.16.9
> ii  libc6   2.13-38
> ii  psmisc  22.19-1+deb7u1
> ii  sed     4.2.1-10
> ii  ucf     3.0025+nmu3
> 
> php5-common recommends no packages.
> 
> php5-common suggests no packages.
> 
> -- Configuration Files:
> /etc/cron.d/php5 changed [not included]
> 
> -- no debconf information
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 07 Mar 2013 22:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Leroy <jonathan+ml@inikup.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 07 Mar 2013 22:03:03 GMT) (full text, mbox, link).


Message #15 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Jonathan Leroy <jonathan+ml@inikup.com>
To: Ondřej Surý <ondrej@sury.org>
Cc: "702531@bugs.debian.org" <702531@bugs.debian.org>
Subject: Re: [php-maint] Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 7 Mar 2013 23:01:30 +0100
2013/3/7 Ondřej Surý <ondrej@sury.org>:
> What default shell and cron are you using?

Bash, and Debian's default cron (http://packages.debian.org/wheezy/cron).

Regards,

-- 
Jonathan Leroy



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 07 Mar 2013 22:15:06 GMT) (full text, mbox, link).


Message #18 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Bob Proulx <bob@proulx.com>
To: Jonathan Leroy <jonathan+ml@inikup.com>, 702531@bugs.debian.org
Subject: Re: Bug#702531: [php-maint] Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 7 Mar 2013 15:11:44 -0700
[Message part 1 (text/plain, inline)]
Jonathan Leroy wrote:
> 2013/3/7 Ondřej Surý <ondrej@sury.org>:
> > What default shell and cron are you using?
> 
> Bash, and Debian's default cron (http://packages.debian.org/wheezy/cron).

I have the same and do not have any error with it.  There should be no
need for extra backslashes quoting that character.

The original message had the line abbreviated and word wrapped.  Is it
possible that the original file has a spurious newline in it that may
be hard to see?  Can you double check the contents of that file?  Your
editor may have done automatic word wrapping and inserted a newline
without your commanding it.

  $ wc -l /etc/cron.d/php5
  7 /etc/cron.d/php5

  $ grep php.*delete /etc/cron.d/php5 | wc -l
  1

Bob
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Fri, 08 Mar 2013 07:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 08 Mar 2013 07:15:03 GMT) (full text, mbox, link).


Message #23 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Bob Proulx <bob@proulx.com>, 702531@bugs.debian.org, control@bugs.debian.org
Cc: Jonathan Leroy <jonathan+ml@inikup.com>
Subject: Re: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Fri, 8 Mar 2013 08:11:25 +0100
tags 702531 +moreinfo
severity 702531 normal
thank you

Jonathan, I would suggest reinstalling php5-common, since the problem
you have described, is for 99% some problem of your local
installation, since you are the first use who had reported such issue,
and it is working for the rest (including me).

Ondrej



O.

On Thu, Mar 7, 2013 at 11:11 PM, Bob Proulx <bob@proulx.com> wrote:
> Jonathan Leroy wrote:
>> 2013/3/7 Ondřej Surý <ondrej@sury.org>:
>> > What default shell and cron are you using?
>>
>> Bash, and Debian's default cron (http://packages.debian.org/wheezy/cron).
>
> I have the same and do not have any error with it.  There should be no
> need for extra backslashes quoting that character.
>
> The original message had the line abbreviated and word wrapped.  Is it
> possible that the original file has a spurious newline in it that may
> be hard to see?  Can you double check the contents of that file?  Your
> editor may have done automatic word wrapping and inserted a newline
> without your commanding it.
>
>   $ wc -l /etc/cron.d/php5
>   7 /etc/cron.d/php5
>
>   $ grep php.*delete /etc/cron.d/php5 | wc -l
>   1
>
> Bob
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



--
Ondřej Surý <ondrej@sury.org>



Added tag(s) moreinfo. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Fri, 08 Mar 2013 07:15:05 GMT) (full text, mbox, link).


Severity set to 'normal' from 'important' Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Fri, 08 Mar 2013 07:15:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Fri, 08 Mar 2013 12:45:05 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Leroy <jonathan+ml@inikup.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 08 Mar 2013 12:45:05 GMT) (full text, mbox, link).


Message #32 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Jonathan Leroy <jonathan+ml@inikup.com>
To: Ondřej Surý <ondrej@debian.org>
Cc: Bob Proulx <bob@proulx.com>, 702531@bugs.debian.org
Subject: Re: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Fri, 8 Mar 2013 13:41:36 +0100
2013/3/8 Ondřej Surý <ondrej@debian.org>:
> Jonathan, I would suggest reinstalling php5-common, since the problem
> you have described, is for 99% some problem of your local
> installation, since you are the first use who had reported such issue,
> and it is working for the rest (including me).

Reinstall php5-common with "dpkg --force-confmiss -i
php5-common_5.4.4-14_amd64.deb" fix the problem. Strange.

Thanks for your help !

-- 
Jonathan Leroy



Reply sent to "Thijs Kinkhorst" <thijs@debian.org>:
You have taken responsibility. (Fri, 08 Mar 2013 13:03:03 GMT) (full text, mbox, link).


Notification sent to Jonathan Leroy <jonathan+ml@inikup.com>:
Bug acknowledged by developer. (Fri, 08 Mar 2013 13:03:03 GMT) (full text, mbox, link).


Message #37 received at 702531-done@bugs.debian.org (full text, mbox, reply):

From: "Thijs Kinkhorst" <thijs@debian.org>
To: 702531-done@bugs.debian.org
Subject: Re: [php-maint] Bug#702531: Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Fri, 8 Mar 2013 14:00:57 +0100
On Fri, March 8, 2013 13:41, Jonathan Leroy wrote:
> 2013/3/8 Ondřej Surý <ondrej@debian.org>:
>> Jonathan, I would suggest reinstalling php5-common, since the problem
>> you have described, is for 99% some problem of your local
>> installation, since you are the first use who had reported such issue,
>> and it is working for the rest (including me).
>
> Reinstall php5-common with "dpkg --force-confmiss -i
> php5-common_5.4.4-14_amd64.deb" fix the problem. Strange.

Good to hear that it's fixed. Something must have corrupted your crontab
it seems.


Cheers,
Thijs



Message #38 received at 702531-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: 702531-done@bugs.debian.org
Subject: Fwd: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Fri, 8 Mar 2013 14:38:54 +0100
---------- Forwarded message ----------
From: Jonathan Leroy <jonathan+ml@inikup.com>
Date: Fri, Mar 8, 2013 at 1:41 PM
Subject: Re: [php-maint] Bug#702531: Bug#702531: php5-common:
Non-escaped semicolon in crontab
To: Ondřej Surý <ondrej@debian.org>
Cc: Bob Proulx <bob@proulx.com>, 702531@bugs.debian.org


2013/3/8 Ondřej Surý <ondrej@debian.org>:
> Jonathan, I would suggest reinstalling php5-common, since the problem
> you have described, is for 99% some problem of your local
> installation, since you are the first use who had reported such issue,
> and it is working for the rest (including me).

Reinstall php5-common with "dpkg --force-confmiss -i
php5-common_5.4.4-14_amd64.deb" fix the problem. Strange.

Thanks for your help !

--
Jonathan Leroy


-- 
Ondřej Surý <ondrej@sury.org>



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 14 Mar 2013 07:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Leroy <jonathan+ml@inikup.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 14 Mar 2013 07:33:06 GMT) (full text, mbox, link).


Message #43 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Jonathan Leroy <jonathan+ml@inikup.com>
To: 702531@bugs.debian.org
Cc: Bob Proulx <bob@proulx.com>, Ondřej Surý <ondrej@debian.org>, control@bugs.debian.org
Subject: Re: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 14 Mar 2013 08:28:07 +0100
reopen 702531

2013/3/8 Jonathan Leroy <jonathan+ml@inikup.com>:
> Reinstall php5-common with "dpkg --force-confmiss -i
> php5-common_5.4.4-14_amd64.deb" fix the problem. Strange.

Hi,

The problem persists. The crontab file (/etc/cron.d/php5) seems to be
rewritten at each server reboot (file timestamp = now - uptime).
Restarting PHP FPM using /etc/init.d/php5-fpm stop, start, or restart
doesn't override the file.

-- 
Jonathan Leroy



Bug reopened Request was from Jonathan Leroy <jonathan+ml@inikup.com> to control@bugs.debian.org. (Thu, 14 Mar 2013 07:33:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 14 Mar 2013 08:09:03 GMT) (full text, mbox, link).


Message #48 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Bob Proulx <bob@proulx.com>
To: Jonathan Leroy <jonathan+ml@inikup.com>, 702531@bugs.debian.org
Subject: Re: Bug#702531: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 14 Mar 2013 02:05:27 -0600
[Message part 1 (text/plain, inline)]
Jonathan Leroy wrote:
> 2013/3/8 Jonathan Leroy wrote:
> > Reinstall php5-common with "dpkg --force-confmiss -i
> > php5-common_5.4.4-14_amd64.deb" fix the problem. Strange.
> 
> The problem persists. The crontab file (/etc/cron.d/php5) seems to be
> rewritten at each server reboot (file timestamp = now - uptime).
> Restarting PHP FPM using /etc/init.d/php5-fpm stop, start, or restart
> doesn't override the file.

Surely then the problem must be that something on your system outside
of the php package is modifying the file.  Is your system running
cfengine, puppet, chef or other system configuration utility?  Perhaps
one of those is modifying the file.

Bob
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#702531; Package php5-common. (Thu, 14 Mar 2013 08:12:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 14 Mar 2013 08:12:03 GMT) (full text, mbox, link).


Message #53 received at 702531@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Jonathan Leroy <jonathan+ml@inikup.com>
Cc: 702531@bugs.debian.org, Bob Proulx <bob@proulx.com>
Subject: Re: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 14 Mar 2013 09:10:18 +0100
[Message part 1 (text/plain, inline)]
Hi,

I still think that this is the problem of your local system. I would
suggest to try to reproduce it in clean installation.

I have restarted one of my kvm virtuals and nothing like this happens.

Before reboot:
root@jedi:/etc/cron.d# md5sum php5
021b1d7737f7de7957214993fde9adba  php5
root@jedi:/etc/cron.d# ls -ld php5
-rw-r--r-- 1 root root 565 úno 19 12:18 php5
root@jedi:/etc/cron.d# uptime
 09:05:29 up 209 days, 23:34,  1 user,  load average: 0,00, 0,00, 0,00

After reboot:
root@jedi:/etc/cron.d# md5sum php5
021b1d7737f7de7957214993fde9adba  php5
root@jedi:/etc/cron.d# ls -ld php5
-rw-r--r-- 1 root root 565 úno 19 12:18 php5
root@jedi:/etc/cron.d# uptime
 09:08:35 up 2 min,  1 user,  load average: 0,22, 0,17, 0,07

There's nothing in the php5 package which mangles the crontab.

Ondrej



On Thu, Mar 14, 2013 at 8:28 AM, Jonathan Leroy <jonathan+ml@inikup.com>wrote:

> reopen 702531
>
> 2013/3/8 Jonathan Leroy <jonathan+ml@inikup.com>:
> > Reinstall php5-common with "dpkg --force-confmiss -i
> > php5-common_5.4.4-14_amd64.deb" fix the problem. Strange.
>
> Hi,
>
> The problem persists. The crontab file (/etc/cron.d/php5) seems to be
> rewritten at each server reboot (file timestamp = now - uptime).
> Restarting PHP FPM using /etc/init.d/php5-fpm stop, start, or restart
> doesn't override the file.
>
> --
> Jonathan Leroy
>



-- 
Ondřej Surý <ondrej@sury.org>
[Message part 2 (text/html, inline)]

Reply sent to Jonathan Leroy <jonathan+ml@inikup.com>:
You have taken responsibility. (Thu, 14 Mar 2013 20:33:04 GMT) (full text, mbox, link).


Notification sent to Jonathan Leroy <jonathan+ml@inikup.com>:
Bug acknowledged by developer. (Thu, 14 Mar 2013 20:33:04 GMT) (full text, mbox, link).


Message #58 received at 702531-done@bugs.debian.org (full text, mbox, reply):

From: Jonathan Leroy <jonathan+ml@inikup.com>
To: 702531-done@bugs.debian.org
Cc: Ondřej Surý <ondrej@debian.org>, Bob Proulx <bob@proulx.com>
Subject: Re: [php-maint] Bug#702531: Bug#702531: php5-common: Non-escaped semicolon in crontab
Date: Thu, 14 Mar 2013 21:28:26 +0100
I've found the origin of the problem : by default, my hosting provider
setup an init script that override this file.
Sorry for the trouble...

Thanks,

-- 
Jonathan Leroy



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 12 Apr 2013 07:26:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:29:33 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.