~ubuntu-branches/ubuntu/trusty/schroot/trusty

« back to all changes in this revision

Viewing changes to bin/dchroot/dchroot-session-base.cc

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2009-11-07 10:46:54 UTC
  • mfrom: (1.1.20 upstream) (2.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091107104654-kk1fp1icv8dzfyfi
* New upstream development release.
* schroot:
  - Return success when ending a session and the operation
    succeeded (Closes: #554907).

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
void
69
69
session_base::run_impl ()
70
70
{
71
 
  if (get_ruid() != get_uid())
72
 
    throw error(get_ruser(), get_user(), USER_SWITCH,
 
71
  if (get_auth()->get_ruid() != get_auth()->get_uid())
 
72
    throw error(get_auth()->get_ruser(), get_auth()->get_user(), USER_SWITCH,
73
73
                _("dchroot session restriction"));
74
74
 
75
75
  sbuild::session::run_impl();