Your message dated Sun, 31 Oct 2010 22:17:18 -0500
with message-id <20101101031718.ga29...@burratino>
and subject line Re: dash: Can't open read-only scripts
has caused the Debian Bug report #586736,
regarding dash: Dash is unable to execute read only scripts
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
586736: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586736
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dash
Version: 0.5.6.1-1~exp0
Severity: critical

When user doesn't have write access to script :
sob...@solis:/tmp$ ls -lh ./a.sh 
-r-xr-x--- 1 sobkas sobkas 9 06-22 19:20 ./a.sh

dash fails to start it with this error(I have dash as sh)

sob...@solis:/tmp$ ./a.sh 
/bin/sh: Can't open ./a.sh

During the boot-up process / partition is read-only and because of that
dash is unable to execute /etc/init.d/rcS and /etc/init.d/rc scripts.

Apparently problem lies inside patch:
 0006--INPUT-exit-127-if-command_file-is-given-but-doesn-t.diff
Why would anyone want to open script in read-write mode?

-       if ((fd = open(fname, O_RDONLY)) < 0) {
+       if ((fd = open(fname, O_RDWR)) < 0) {

After changing it back to O_RDONLY dash properly executes read-only scripts.


-- System Information:
Debian Release: squeeze/sid
  APT prefers experimental
  APT policy: (501, 'experimental'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-rc5-00159-g5997e26-dirty (SMP w/2 CPU cores)
Locale: LANG=pl_PL.utf8, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dash depends on:
ii  debianutils                   3.2.3      Miscellaneous utilities specific t
ii  dpkg                          1.15.7.2   Debian package management system
ii  libc6                         2.11.1-3   Embedded GNU C Library: Shared lib

dash recommends no packages.

dash suggests no packages.

-- debconf-show failed

-- 
X was an interactive protocol: 
alpha blending a full-screen image looked like slugs racing down the monitor. 
http://www.keithp.com/~keithp/talks/usenix2000/render.html



--- End Message ---
--- Begin Message ---
Version: 0.5.6.1-1~exp0+RM

Krzysztof A. Sobiecki wrote:

> sob...@solis:/tmp$ ./a.sh 
> /bin/sh: Can't open ./a.sh

Removed from experimental[1].  Thanks, Gerrit.

[1] http://bugs.debian.org/595663


--- End Message ---

Reply via email to