Your message dated Tue, 27 Sep 2011 12:17:10 +0000
with message-id <e1r8wb0-0005r0...@franck.debian.org>
and subject line Bug#640334: fixed in dash 0.5.7-2
has caused the Debian Bug report #640334,
regarding [kfreebsd] dash: faccessat implementation of "test -x" always returns 
true for user root
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 ow...@bugs.debian.org
immediately.)


-- 
640334: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640334
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dash
Version: 0.5.7-1
Severity: serious

Hi!

  dash relies, for it's test builtin that faccessat returns useable
values for X_OK when called from the root user. Unfortunately that's not
true on kfreebsd (and seemingly not required by POSIX, see
#640325). Could you please just use the alternate code path on kfreebsd
which appears to work as wanted.

Thanks

    Christoph

--- Begin Message ---
Hi!

Petr Salinger <petr.salin...@seznam.cz> writes:
> severity 640325 wishlist
> --
>
>>  The following code (extracted from dash's test builtin) is behaving
>> differently between linux and kfreebsd, having a 644 `test' file and
>> running it on linux as root user prints -1 while on kfreebsd it prints
>> 0.
>>
>> -------------------------------------------------------
>> #include <fcntl.h>
>> #include <unistd.h>
>> #include <stdio.h>
>>
>> int main () {
>>  printf("%d\n", faccessat(AT_FDCWD, "test", X_OK, AT_EACCESS));
>> }
>> -------------------------------------------------------
>
> While the behaviour is strange, it is still POSIX conforming:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html
>
> If any access permissions are checked, each shall be checked
> individually, as described in XBD File Access Permissions, except that
> where that description refers to execute permission for a process with
> appropriate privileges, an implementation may indicate success for
> X_OK even if execute permission is not granted to any user.
>
> We already wrap access syscall to more intuitive behaviour,
> we should try to do the same also for faccessat.

  So relying on this is actually a bug in dash? (and there's probably no
easy way to check how faccessat is behaving right?)

Thanks for your information!

    Christoph

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

--- End Message ---

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

--- End Message ---
--- Begin Message ---
Source: dash
Source-Version: 0.5.7-2

We believe that the bug you reported is fixed in the latest version of
dash, which is due to be installed in the Debian FTP archive:

ash_0.5.7-2_all.deb
  to main/d/dash/ash_0.5.7-2_all.deb
dash_0.5.7-2.diff.gz
  to main/d/dash/dash_0.5.7-2.diff.gz
dash_0.5.7-2.dsc
  to main/d/dash/dash_0.5.7-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 640...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonathan Nieder <jrnie...@gmail.com> (supplier of updated dash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 26 Sep 2011 16:39:38 -0500
Source: dash
Binary: dash ash
Architecture: all source
Version: 0.5.7-2
Distribution: unstable
Urgency: high
Maintainer: Gerrit Pape <p...@smarden.org>
Changed-By: Jonathan Nieder <jrnie...@gmail.com>
Description: 
 ash        - compatibility package for dash
 dash       - POSIX-compliant shell
Closes: 640334 642922
Changes: 
 dash (0.5.7-2) unstable; urgency=high
 .
   * debian/diff/:
     - 0004-BUILTIN-Fix-test-x-as-root...diff: new; teach "test -x"
       as root not to return true for nonexecutable files on
       platforms where faccessat() does return true in this case,
       such as glibc-bsd in squeeze (thx Christoph Egger, closes:
       #640334).
     - 0005-SHELL-Disable-sh-c-...diff: back out the optimization
       that makes dash -c "script" avoid a fork().  It caused
       several packages to fail to build from source (thx Stéphane
       Glondu, closes: #642922).
Checksums-Sha1: 
 2f66d96f0c6cc4dc89f6ff6c4f802a3d43603ea0 1083 dash_0.5.7-2.dsc
 87d77d2de11dc911938cd93fc17bf1fac2a302e3 40587 dash_0.5.7-2.diff.gz
 8cb4c5f4072a1626720d6f87a673fd2321e4cf73 28938 ash_0.5.7-2_all.deb
Checksums-Sha256: 
 987a50f6f79f854a8caa485d5d4f4b9f5205ce1eba6bc6cda92096ebec2e8107 1083 
dash_0.5.7-2.dsc
 7ae4ad61bea0849e022dba92b16d46e562ae2dadc7d335a7bce13d5d436d1129 40587 
dash_0.5.7-2.diff.gz
 1cbbaa64e2b6cbfbf0c3803e63e1d9a4799bf9a5a5d1b7438adb3008816236fd 28938 
ash_0.5.7-2_all.deb
Files: 
 c9062bd3bfd8d1b765758552ffec24db 1083 shells optional dash_0.5.7-2.dsc
 5918091a338e94a4ec7014f0da024d4c 40587 shells optional dash_0.5.7-2.diff.gz
 7a5436d676c382e6b66cda82c7b97490 28938 shells optional ash_0.5.7-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk6BGjAACgkQGJoyQbxwpv+BogCePsAZJQ9ZYrSx2UKUwc2aNGaX
MbAAnRRVLIwtyHHQQbVAb26L4Ql5kNnH
=ozSf
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to