~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to lib/common/interpret.py

  • Committer: dcoles
  • Date: 2008-02-13 04:10:55 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:443
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    # (Note: files are executed by their owners, not the logged in user.
73
73
    # This ensures users are responsible for their own programs and also
74
74
    # allows them to be executed by the public).
75
 
    uid = req.get_session()['unixid']
 
75
    try:
 
76
        (_,_,uid,_,_,_,_) = pwd.getpwnam(owner)
 
77
    except KeyError:
 
78
        # The user does not exist. This should have already failed the
 
79
        # previous test.
 
80
        req.throw_error(req.HTTP_INTERNAL_SERVER_ERROR)
76
81
 
77
82
    # Split up req.path again, this time with respect to the jail
78
83
    (working_dir, _) = os.path.split(filename_abs)