summaryrefslogtreecommitdiff
path: root/sbuild/sbuild-chroot-file.cc
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2006-07-12 12:44:23 +0000
committerRoger Leigh <rleigh@debian.org>2006-07-12 12:44:23 +0000
commitcf6ce41a8d79ac7d0e867dd23302bc38cd3415ee (patch)
treee0899e0ae3e97c2275bc96d1ae7c5e229fb1d6a5 /sbuild/sbuild-chroot-file.cc
parent4d0205895746a2f91f5958b68efda89f2807db0e (diff)
downloadschroot-cf6ce41a8d79ac7d0e867dd23302bc38cd3415ee.tar.gz
* All sources use strerror(errno) in place of errno when creating
a custom_error<>. * sbuild/sbuild-custom-error.h: Remove all constructors with integer errno arguments.
Diffstat (limited to 'sbuild/sbuild-chroot-file.cc')
-rw-r--r--sbuild/sbuild-chroot-file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbuild/sbuild-chroot-file.cc b/sbuild/sbuild-chroot-file.cc
index 73919c96..bb34e0ed 100644
--- a/sbuild/sbuild-chroot-file.cc
+++ b/sbuild/sbuild-chroot-file.cc
@@ -123,7 +123,7 @@ chroot_file::setup_lock (setup_type type,
{
struct stat statbuf;
if (stat(this->file.c_str(), &statbuf) < 0)
- throw error(this->file, FILE_STAT, errno);
+ throw error(this->file, FILE_STAT, strerror(errno));
// NOTE: taken from chroot_config::check_security.
if (statbuf.st_uid != 0)