[buildd-tools-devel] Bug#545706: 'schroot' exits with code 0 on 'permission denied' failures
Nelson Elhage
nelhage at MIT.EDU
Tue Sep 8 15:20:08 UTC 2009
Package: schroot
Version: 1.2.2-0+lenny1
Severity: normal
Running schroot commands on a chroot that the current user does not
have permission to access results in schroot failing, but exiting with
a code of 0. This is annoying, as it means that scripts that use
schroot with a user-provided chroot name cannot easily determine
whether operations succeeded.
[nelhage at lunatique:~]$ schroot -c i386_sid
E: Access not authorised
I: You do not have permission to access the schroot service.
I: This failure will be reported.
[nelhage at lunatique:~]$ echo $?
0
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages schroot depends on:
ii libboost-filesystem1.34.1 1.34.1-14 filesystem operations (portable pa
ii libboost-program-options1 1.34.1-14 program options library for C++
ii libboost-regex1.34.1 1.34.1-14 regular expression library for C++
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii liblockdev1 1.0.3-1.2+b1 Run-time shared library for lockin
ii libpam0g 1.0.1-5+lenny1 Pluggable Authentication Modules l
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii libuuid1 1.41.3-1 universally unique id library
ii schroot-common 1.2.2-0+lenny1 common files for schroot
schroot recommends no packages.
Versions of packages schroot suggests:
ii debootstrap 1.0.10lenny1 Bootstrap a basic Debian system
ii lvm2 2.02.39-7 The Linux Logical Volume Manager
ii unzip 5.52-12 De-archiver for .zip files
-- no debconf information
More information about the Buildd-tools-devel
mailing list