~noskcaj/ubuntu/vivid/gdm/3.14.1

« back to all changes in this revision

Viewing changes to common/gdm-common.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha, Tim Lunn, Jeremy Bicha, Robert Ancell
  • Date: 2013-05-31 22:36:08 UTC
  • mfrom: (1.4.55)
  • Revision ID: package-import@ubuntu.com-20130531223608-33uo85niksee5460
Tags: 3.8.1.1-0ubuntu1
[ Tim Lunn ]
* New upstream release
* debian/patches/ubuntu_dont_catch_sigsegv.patch:
  - Dropped, obsolete
* debian/rules:
  - Don't rename gdm binary since that's already been
    done in the new version

[ Jeremy Bicha ]
* debian/control.in: Bump minimum glib
* debian/watch: Watch for unstable releases
* debian/patches/00git_logind_check.patch:
  - Dropped, applied in new release
* debian/patches/08_frequent-users_greeter.patch: Refreshed

[ Robert Ancell ]
* New upstream release
* debian/patches/ubuntu_daemon_autologin_tracking.patch:
* debian/patches/ubuntu_ensure_dirs.patch:
* debian/patches/ubuntu_slave-only-set-up-autologin.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
}
71
71
 
72
72
gboolean
 
73
gdm_clear_close_on_exec_flag (int fd)
 
74
{
 
75
        int flags;
 
76
 
 
77
        if (fd < 0) {
 
78
                return FALSE;
 
79
        }
 
80
 
 
81
        flags = fcntl (fd, F_GETFD, 0);
 
82
 
 
83
        if (flags < 0) {
 
84
                return FALSE;
 
85
        }
 
86
 
 
87
        if ((flags & FD_CLOEXEC) != 0) {
 
88
                int status;
 
89
 
 
90
                status = fcntl (fd, F_SETFD, flags & ~FD_CLOEXEC);
 
91
 
 
92
                return status != -1;
 
93
        }
 
94
 
 
95
        return TRUE;
 
96
}
 
97
 
 
98
gboolean
73
99
gdm_get_pwent_for_name (const char     *name,
74
100
                        struct passwd **pwentp)
75
101
{