Re: Bug in cron postinst

2003-09-04 Thread Christian Perrier
Quoting Steve Greenland ([EMAIL PROTECTED]): That one is among the oldests please switch to po-debconf bugs filed by the french translation team. I'm going to pull the debconf template completely and use the News file, which is the appropriate place for that note. This is common these

Re: Bug in cron postinst

2003-09-03 Thread Goswin von Brederlow
Steve Greenland [EMAIL PROTECTED] writes: YES, I know that the postinst doesn't work if you don't have any user crontabs, feel free to stop reporting the bug -- I have enough. You can get the installation to complete by editing /var/lib/dpkg/info/cron.postinst and removing these three

Re: Bug in cron postinst

2003-09-03 Thread Andreas Metzler
Goswin von Brederlow [EMAIL PROTECTED] wrote: Steve Greenland [EMAIL PROTECTED] writes: YES, I know that the postinst doesn't work if you don't have any user crontabs, feel free to stop reporting the bug -- I have enough. You can get the installation to complete by editing

Re: Bug in cron postinst

2003-09-03 Thread Goswin von Brederlow
Andreas Metzler [EMAIL PROTECTED] writes: Goswin von Brederlow [EMAIL PROTECTED] wrote: Steve Greenland [EMAIL PROTECTED] writes: YES, I know that the postinst doesn't work if you don't have any user crontabs, feel free to stop reporting the bug -- I have enough. You can get the

Re: Bug in cron postinst

2003-09-03 Thread Andreas Metzler
Goswin von Brederlow [EMAIL PROTECTED] wrote: Andreas Metzler [EMAIL PROTECTED] writes: Goswin von Brederlow [EMAIL PROTECTED] wrote: Steve Greenland [EMAIL PROTECTED] writes: [...] for ct in * ; do chown $ct:crontab $ct done This also won't work with too many users.

Re: Bug in cron postinst

2003-09-03 Thread Roland Bauerschmidt
Steve Greenland wrote: for ct in * ; do chown $ct:crontab $ct done This will also fail with usernames that include spaces. I'm sure you already have a solution, but I'd go with something like this: find /var/spool/crontab -maxdepth 1 -type f -print | while read ct; do

Re: Bug in cron postinst

2003-09-03 Thread Christian Perrier
Quoting Steve Greenland ([EMAIL PROTECTED]): Yes, obvious in retrospect, and I'll put the brown paper bag on my head after I upload the fix. Will the fix include the switch to po-debconf proposed in #195887 ? That one is among the oldests please switch to po-debconf bugs filed by the french

Re: Bug in cron postinst

2003-09-03 Thread Steve Greenland
On 03-Sep-03, 01:33 (CDT), Goswin von Brederlow [EMAIL PROTECTED] wrote: And lets add a user with homedir `rm -rf ..` just for fun. I'm missing something here. What does the user's homedir have to do with anything? The entry in the spool dir is the username. Someone else mentioned usernames

Re: Bug in cron postinst

2003-09-03 Thread Steve Greenland
On 02-Sep-03, 23:50 (CDT), Christian Perrier [EMAIL PROTECTED] wrote: Quoting Steve Greenland ([EMAIL PROTECTED]): Yes, obvious in retrospect, and I'll put the brown paper bag on my head after I upload the fix. Will the fix include the switch to po-debconf proposed in #195887?? No,

Re: Bug in cron postinst

2003-09-03 Thread Matt Zimmerman
On Wed, Sep 03, 2003 at 08:33:26AM +0200, Goswin von Brederlow wrote: Steve Greenland [EMAIL PROTECTED] writes: for ct in * ; do chown $ct:crontab $ct done [...] And lets add a user with homedir `rm -rf ..` just for fun. That command line has nothing to do with home

Re: Bug in cron postinst

2003-09-03 Thread Matt Zimmerman
On Wed, Sep 03, 2003 at 10:48:36AM -0500, Steve Greenland wrote: On 03-Sep-03, 01:33 (CDT), Goswin von Brederlow [EMAIL PROTECTED] wrote: And lets add a user with homedir `rm -rf ..` just for fun. I'm missing something here. What does the user's homedir have to do with anything? The entry

Re: Bug in cron postinst

2003-09-03 Thread Colin Watson
On Wed, Sep 03, 2003 at 11:12:36AM +0200, Goswin von Brederlow wrote: Andreas Metzler [EMAIL PROTECTED] writes: Goswin von Brederlow [EMAIL PROTECTED] wrote: And lets add a user with homedir `rm -rf ..` just for fun. Variable expansion happens at the same time as command substitution, not

Re: Bug in cron postinst

2003-09-03 Thread Jan Schulz
Hallo Goswin, * Goswin von Brederlow wrote: (my normal shell is zsh) [EMAIL PROTECTED]:/tmp/bar% touch a b [EMAIL PROTECTED]:/tmp/bar% L=`find` [EMAIL PROTECTED]:/tmp/bar% for i in $L; do echo $i; done . ./a b [EMAIL PROTECTED]:/tmp/bar% bash bash-2.05b$ L=`find`

Re: Bug in cron postinst

2003-09-03 Thread John H. Robinson, IV
Jan Schulz wrote: [EMAIL PROTECTED]:/tmp/tmp$ IFS= [EMAIL PROTECTED]:/tmp/tmp$ for i in $L; do echo $i; done . ./a b Jan, learned the hard way... except for filenames with embedded newlines. use $i, and worry no more. -john

Re: Bug in cron postinst

2003-09-03 Thread Matt Zimmerman
On Wed, Sep 03, 2003 at 05:20:54PM +0100, Colin Watson wrote: [EMAIL PROTECTED]:/tmp/bar% bash bash-2.05b$ L=`find` bash-2.05b$ for i in $L; do echo $i; done . ./a b No wonder. You aren't quoting correctly! Use 'echo $i'. there:[~] /bin/bash [EMAIL PROTECTED]:~$

Re: Bug in cron postinst

2003-09-03 Thread John H. Robinson, IV
Matt Zimmerman wrote: On Wed, Sep 03, 2003 at 05:20:54PM +0100, Colin Watson wrote: [EMAIL PROTECTED]:/tmp/bar% bash bash-2.05b$ L=`find` bash-2.05b$ for i in $L; do echo $i; done . ./a b No wonder. You aren't quoting correctly! Use 'echo $i'. there:[~]

Re: Bug in cron postinst

2003-09-03 Thread Matt Zimmerman
On Wed, Sep 03, 2003 at 01:40:51PM -0700, John H. Robinson, IV wrote: Matt Zimmerman wrote: there:[~] /bin/bash [EMAIL PROTECTED]:~$ foo=a b [EMAIL PROTECTED]:~$ for x in $foo; do echo $x; done a b $ foo=a b; for x in $foo; do echo $x : $x; done a b

Re: Bug in cron postinst

2003-09-03 Thread John H. Robinson, IV
Matt Zimmerman wrote: On Wed, Sep 03, 2003 at 01:40:51PM -0700, John H. Robinson, IV wrote: Matt Zimmerman wrote: there:[~] /bin/bash [EMAIL PROTECTED]:~$ foo=a b [EMAIL PROTECTED]:~$ for x in $foo; do echo $x; done a b $ foo=a b; for x in

Bug in cron postinst

2003-09-02 Thread Steve Greenland
YES, I know that the postinst doesn't work if you don't have any user crontabs, feel free to stop reporting the bug -- I have enough. You can get the installation to complete by editing /var/lib/dpkg/info/cron.postinst and removing these three lines near the end: for ct in * ; do