Bug#350918: runit-services: ssh/log/run fix

2006-02-06 Thread Gerrit Pape
tags 350918 + pending
thanks

On Sat, Feb 04, 2006 at 01:03:29PM +, Gerrit Pape wrote:
 On Sat, Feb 04, 2006 at 05:24:59PM +0530, Joshua N Pritikin wrote:
  On Sat, Feb 04, 2006 at 11:08:18AM +, Gerrit Pape wrote:
such file or directory?chown: failed to get attributes of `': No such
file or directory?chown: failed to get attributes of `': No such file or
directory?chown: failed to get attributes of  ... etc
   
   Hmm, where does /bin/sh point to on your system?
  
  Why dash of course!
 
 Hmm, I'll check this.  Thanks.

It behaves differently when run from the command line, or run from a
script, e.g.:

 $ echo foo  echo $_
 foo
 foo
 $ dash -c 'echo foo  echo $_'
 foo
 foo
 $ 

but

 $ cat ttt EOT
 echo foo  echo $_
 EOT
 $ sh ttt
 foo
 cat
 $ 

So I really need to fix it.  Regards, Gerrit.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350918: runit-services: ssh/log/run fix

2006-02-04 Thread Gerrit Pape
On Wed, Feb 01, 2006 at 11:28:13PM +0530, [EMAIL PROTECTED] wrote:
 Looks like a typo?

Well, $_ is just fine, it expands to the last argument of the previous
command.  I'll change it for consistency though.

Thanks, Gerrit.


 --- run.orig  2006-02-01 23:24:40.0 +0530
 +++ run   2006-02-01 23:24:46.0 +0530
 @@ -3,6 +3,6 @@
  
  LOG=/var/log/ssh
  
 -test -d $LOG || mkdir -p -m0750 $LOG  chown log:adm $_
 +test -d $LOG || mkdir -p -m0750 $LOG  chown log:adm $LOG
  
  exec chpst -ulog:adm svlogd -tt $LOG
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350918: runit-services: ssh/log/run fix

2006-02-04 Thread Joshua N Pritikin
On Sat, Feb 04, 2006 at 10:40:17AM +, Gerrit Pape wrote:
 On Wed, Feb 01, 2006 at 11:28:13PM +0530, [EMAIL PROTECTED] wrote:
  Looks like a typo?
 
 Well, $_ is just fine, it expands to the last argument of the previous
 command.

I wonder why it didn't work. If I use $_ as is I get:

runsvdir -P /var/service log: tory?chown: failed to get attributes of
`': No such file or directory?chown: failed to get attributes of `': No
such file or directory?chown: failed to get attributes of `': No such
file or directory?chown: failed to get attributes of `': No such file or
directory?chown: failed to get attributes of  ... etc

  I'll change it for consistency though.

OK


signature.asc
Description: Digital signature


Bug#350918: runit-services: ssh/log/run fix

2006-02-04 Thread Gerrit Pape
On Sat, Feb 04, 2006 at 04:28:38PM +0530, Joshua N Pritikin wrote:
 On Sat, Feb 04, 2006 at 10:40:17AM +, Gerrit Pape wrote:
  On Wed, Feb 01, 2006 at 11:28:13PM +0530, [EMAIL PROTECTED] wrote:
   Looks like a typo?
  
  Well, $_ is just fine, it expands to the last argument of the previous
  command.
 
 I wonder why it didn't work. If I use $_ as is I get:
 
 runsvdir -P /var/service log: tory?chown: failed to get attributes of
 `': No such file or directory?chown: failed to get attributes of `': No
 such file or directory?chown: failed to get attributes of `': No such
 file or directory?chown: failed to get attributes of `': No such file or
 directory?chown: failed to get attributes of  ... etc

Hmm, where does /bin/sh point to on your system?

Regards, Gerrit.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350918: runit-services: ssh/log/run fix

2006-02-04 Thread Joshua N Pritikin
On Sat, Feb 04, 2006 at 11:08:18AM +, Gerrit Pape wrote:
 On Sat, Feb 04, 2006 at 04:28:38PM +0530, Joshua N Pritikin wrote:
  On Sat, Feb 04, 2006 at 10:40:17AM +, Gerrit Pape wrote:
   On Wed, Feb 01, 2006 at 11:28:13PM +0530, [EMAIL PROTECTED] wrote:
Looks like a typo?
   
   Well, $_ is just fine, it expands to the last argument of the previous
   command.
  
  I wonder why it didn't work. If I use $_ as is I get:
  
  runsvdir -P /var/service log: tory?chown: failed to get attributes of
  `': No such file or directory?chown: failed to get attributes of `': No
  such file or directory?chown: failed to get attributes of `': No such
  file or directory?chown: failed to get attributes of `': No such file or
  directory?chown: failed to get attributes of  ... etc
 
 Hmm, where does /bin/sh point to on your system?

Why dash of course!

emit:~# ls -l /bin/sh
lrwxrwxrwx1 root root4 2005-08-24 15:34 /bin/sh -  dash


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350918: runit-services: ssh/log/run fix

2006-02-04 Thread Gerrit Pape
On Sat, Feb 04, 2006 at 05:24:59PM +0530, Joshua N Pritikin wrote:
 On Sat, Feb 04, 2006 at 11:08:18AM +, Gerrit Pape wrote:
   such file or directory?chown: failed to get attributes of `': No such
   file or directory?chown: failed to get attributes of `': No such file or
   directory?chown: failed to get attributes of  ... etc
  
  Hmm, where does /bin/sh point to on your system?
 
 Why dash of course!

Hmm, I'll check this.  Thanks.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#350918: runit-services: ssh/log/run fix

2006-02-01 Thread joshua
Package: runit-services
Version: 0.1.0
Severity: normal

Looks like a typo?

--- run.orig2006-02-01 23:24:40.0 +0530
+++ run 2006-02-01 23:24:46.0 +0530
@@ -3,6 +3,6 @@
 
 LOG=/var/log/ssh
 
-test -d $LOG || mkdir -p -m0750 $LOG  chown log:adm $_
+test -d $LOG || mkdir -p -m0750 $LOG  chown log:adm $LOG
 
 exec chpst -ulog:adm svlogd -tt $LOG


-- System Information:
Debian Release: 3.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.14-b1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages runit-services depends on:
ii  runit 1.3.2-1a UNIX init scheme with service su
ii  socklog   2.0.2-2system and kernel logging services

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]