talloc_free(my_dir);
}
- /*
- * Once we're done with all of the privileged work,
- * permanently change the UID.
- */
- if (do_suid) {
- rad_suid_set_down_uid(server_uid);
- rad_suid_down();
- }
-
/*
* If we don't already have a log file open, open one
* now. We may not have been logging anything yet. The
}
}
+ /*
+ * Once we're done with all of the privileged work,
+ * permanently change the UID.
+ */
+ if (do_suid) {
+ rad_suid_set_down_uid(server_uid);
+ rad_suid_down();
+ }
+
/*
* This also clears the dumpable flag if core dumps
* aren't allowed.