Your message dated Fri, 17 Nov 2006 14:08:21 +1100
with message-id <[EMAIL PROTECTED]>
and subject line dar_manager: options passed to dar with -o are corrupted
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: dar
Version: 2.2.1-1
Severity: normal
File: /usr/bin/dar_manager

Hi!

See this snippet: 

$ dar_manager -B foo.dmd -o '-B bar.dcf'
$ dar_manager -B foo.dmd -r baz
CALLING DAR:  dar -x foobar -B bar.dcf -g baz
parse error on command line (or included files) : Cannot open file  bar.dcf : 
No such file or directory

... dar tries to open " bar.dcf"!
                       ^
Moreover, since there are no quotes in the error message, this cannot easily be
detected at the command line; it was only by strace(1) that I finally
discovered it. 

$ dar_manager -B foo.dmd -o '-Bbar.dcf'

works as expected.  Since calling dar directly with

$ dar -x foobar -B bar.dcf -g baz

also works, I guess it's dar_manager corrupting the dar command line. 

HAND, 
Nikolaus

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-deb.150606
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages dar depends on:
ii  libbz2-1.0            1.0.2-7            high-quality block-sorting file co
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
ii  libdar2               2.2.1-1            Disk ARchive: Shared library
ii  libgcc1               1:3.4.3-13         GCC support library
ii  libssl0.9.7           0.9.7e-3sarge1     SSL shared libraries
ii  libstdc++5            1:3.3.5-13         The GNU Standard C++ Library v3
ii  zlib1g                1:1.2.2-4.sarge.2  compression library - runtime

-- no debconf information


--- End Message ---
--- Begin Message ---
Hello,

To reproduce, type in:

[EMAIL PROTECTED]:~/tree/config/tmp# dar -x foobar "-B bar.dcf" -g baz
Parse error on command line (or included files): Cannot open file  bar.dcf : No 
such file or directory

This is the way dar_manager is calling dar when you quoted the command
line. There is no corruption here.

dar_manager passes the exact same arguments you passed to it. As you
quoted the space it will also pass the space.

If you want to solve this, then the correct thing is either to remove
the space, or call dar_manager with:

dar_manager -B foo.dmd -o '-B' 'dar.dcf'                               


I did find one problem though. If I say:

dar_manager -B foo.dmd -o'-B dar.dcf'                               

Then dar_manager calls dar with "-o-B dar.dcf" which looks wrong to
me:

[pid 31104] execve("/usr/bin/dar", ["dar", "-x", "./custom", "-o-B dar.dcf", 
"-g", "custom/vpac.org/default", "-g", "custom/vpac.org/default/cfg", "-g", 
"custom/vpac.org/default/ssh", "-g", "custom/vpac.org/default/cfg/www_"..., 
"-g", "custom/vpac.org/default/cfg/www_"..., "-g", 
"custom/vpac.org/default/ssh/auth"..., ...], [/* 39 vars */]) = 0

Thanks
-- 
Brian May <[EMAIL PROTECTED]>

--- End Message ---

Reply via email to