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 |
*/ |