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



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to