Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 588840
Collapse All | Expand All

(-)a/src/ck-sysdeps-unix.c (-5 lines)
Lines 409-419 ck_generate_runtime_dir_for_user (guint uid) Link Here
409
409
410
        TRACE ();
410
        TRACE ();
411
411
412
        if (uid < 1) {
413
                g_debug ("We do not create runtime dirs for root");
414
                return NULL;
415
        }
416
417
        errno = 0;
412
        errno = 0;
418
        pwent = getpwuid (uid);
413
        pwent = getpwuid (uid);
419
        if (pwent == NULL) {
414
        if (pwent == NULL) {
(-)a/tools/ck-remove-directory.c (-10 lines)
Lines 51-61 become_user (uid_t uid, const gchar* dest) Link Here
51
        int            res;
51
        int            res;
52
        struct passwd *pwent;
52
        struct passwd *pwent;
53
53
54
        if (uid < 1) {
55
                g_critical ("invalid UID");
56
                exit (1);
57
        }
58
59
        if (dest == NULL) {
54
        if (dest == NULL) {
60
                g_critical ("invalid dest");
55
                g_critical ("invalid dest");
61
                exit (1);
56
                exit (1);
Lines 148-158 main (int argc, Link Here
148
                exit (1);
143
                exit (1);
149
        }
144
        }
150
145
151
        if (user_id < 1) {
152
                g_warning ("Invalid UID");
153
                exit (1);
154
        }
155
156
        /* Ensure we have a dest and that it starts with the correct prefix
146
        /* Ensure we have a dest and that it starts with the correct prefix
157
         * so we don't remove something important.
147
         * so we don't remove something important.
158
         */
148
         */

Return to bug 588840