Your message dated Thu, 20 Jul 2000 23:56:37 +0200
with message-id <[EMAIL PROTECTED]>
and subject line done
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.)
Darren Benham
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Apr 2000 16:02:52 +0000
Received: (qmail 9036 invoked from network); 17 Apr 2000 16:02:50 -0000
Received: from m155m1oul.dial.kolumbus.fi (HELO PC486.Niemitalo.LAN)
([EMAIL PROTECTED])
by master.debian.org with SMTP; 17 Apr 2000 16:02:50 -0000
Received: from kalle by PC486.Niemitalo.LAN with local (Exim 3.12 #1 (Debian))
id 12hCwt-00006T-00; Mon, 17 Apr 2000 17:56:27 +0300
To: [EMAIL PROTECTED]
Subject: [patch] #! doubles first character of argument
X-Accept-Language: fi;q=1.0, en;q=0.9, sv;q=0.5, de;q=0.1
X-URL: http://stekt.oulu.fi/~tosi/
X-Anagram: look vanilla, aim elite
From: Kalle Olavi Niemitalo <[EMAIL PROTECTED]>
Date: 17 Apr 2000 17:56:25 +0300
Message-ID: <[EMAIL PROTECTED]>
Lines: 48
Package: hurd
Version: CVS 2000-04-16
Severity: important
If the #! line of a script contains an argument for the
interpreter, the argument gets its first character doubled. This
prevents installation of packages which use #!/bin/sh -e in their
maintainer scripts.
kalle@PC486:/tmp$ ls -l abc
-rwxrwxr-x 1 kalle root 16 Apr 17 17:16 abc
kalle@PC486:/tmp$ cat abc
#!/bin/echo def
kalle@PC486:/tmp$ ./abc
ddef ./abc
Here's the fix. INTERP_LEN will still include the null because P
points to the character after the null.
--- hurd/exec/hashexec.c.orig Mon Mar 20 08:57:44 2000
+++ hurd/exec/hashexec.c Mon Apr 17 17:13:10 2000
@@ -178,7 +178,7 @@
arg = p + strspn (p, " \t");
arg_len = interp_len - 1 - (arg - interp_buf); /* without null here */
- interp_len = p + 1 - interp; /* This one includes the null. */
+ interp_len = p - interp; /* This one includes the null. */
if (arg_len == 0)
arg = NULL;
After installing the patched version and rebooting:
kalle@PC486:/tmp$ ls -l abc
-rwxrwxr-x 1 kalle root 16 Apr 17 17:24 abc
kalle@PC486:/tmp$ cat abc
#!/bin/echo def
kalle@PC486:/tmp$ ./abc
def ./abc
When I noticed the problem, I initially tried attaching gdb to
the exec server and setting breakpoints. But when I told gdb to
continue, it said it was unable to wait for the process and soon
after that the exec server seemed to crash -- or perhaps it
stopped at the breakpoint but didn't tell gdb.
Is it possible to debug the primary exec server with gdb?
Or is it possible to run another exec server and debug that?
---------------------------------------
Received: (at 62557-done) by bugs.debian.org; 20 Jul 2000 22:01:11 +0000
>From [EMAIL PROTECTED] Thu Jul 20 17:01:11 2000
Return-path: <[EMAIL PROTECTED]>
Received: from sunu450.rz.ruhr-uni-bochum.de [134.147.64.5]
by master.debian.org with smtp (Exim 3.12 2 (Debian))
id 13FONS-0001ar-00; Thu, 20 Jul 2000 17:01:10 -0500
Received: (qmail 19880 invoked from network); 20 Jul 2000 22:01:09 -0000
Received: from dialppp-7-8.rz.ruhr-uni-bochum.de (HELO localhost) ([EMAIL PROTECTED])
by mailhost.rz.ruhr-uni-bochum.de with SMTP; 20 Jul 2000 22:01:09 -0000
Received: from marcus by localhost with local (Exim 3.12 #1 (Debian))
for [EMAIL PROTECTED]
id 13FOJ3-0000Bm-00; Thu, 20 Jul 2000 23:56:37 +0200
Date: Thu, 20 Jul 2000 23:56:37 +0200
From: Marcus Brinkmann <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: done
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.1.4i
Organization: Marcus Brinkmann's Home
Delivered-To: [EMAIL PROTECTED]
done
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server
Marcus Brinkmann GNU http://www.gnu.org for public PGP Key
[EMAIL PROTECTED], [EMAIL PROTECTED] PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ [EMAIL PROTECTED]