~jamesodhunt/click/add-checksum-to-manifest

« back to all changes in this revision

Viewing changes to lib/click/user.vala

  • Committer: CI bot
  • Author(s): Michael Vogt, Colin Watson
  • Date: 2014-08-06 23:33:12 UTC
  • mfrom: (425.1.67 devel)
  • Revision ID: ps-jenkins@lists.canonical.com-20140806233312-4nc48i27d6zn4i9j
Click 0.4.30: Unit test improvements; fix upgrade if packages are present for removed users; flesh out 14.10 chroots. Fixes: 1334611

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
                        foreach (var entry in Click.Dir.open (users_db)) {
196
196
                                if (entry in seen)
197
197
                                        continue;
 
198
                                // the user is not a pseudo user and does not/no-longer exist
 
199
                                if (!entry.has_prefix ("@") &&
 
200
                                        Posix.getpwnam (entry) == null)
 
201
                                        continue;
198
202
                                var path = Path.build_filename (users_db,
199
203
                                                                entry);
200
204
                                if (is_dir (path)) {