char user[64];
int needs_owner_login_prompt = get_owner_login_user_args(ctx, user, sizeof(user));
- int ret;
if (needs_owner_login_prompt) {
char uid[256];
sprintf(uid, "%d", ctx->from.uid);
// List of signals which cause process termination
static int quit_signals[] = { SIGALRM, SIGHUP, SIGPIPE, SIGQUIT, SIGTERM, SIGINT, 0 };
-static void sighandler(int sig) {
+static void sighandler(int __attribute__((unused))sig) {
restore_stdin();
// Assume we'll only be called before death
return INTERACTIVE;
}
- int result;
char *err = NULL;
struct callback_data_t data;
data.ctx = ctx;
ctx.umask = umask(027);
- int ret = mkdir(REQUESTOR_CACHE_PATH, 0770);
+ mkdir(REQUESTOR_CACHE_PATH, 0770);
if (chown(REQUESTOR_CACHE_PATH, st.st_uid, st.st_gid)) {
PLOGE("chown (%s, %ld, %ld)", REQUESTOR_CACHE_PATH, st.st_uid, st.st_gid);
deny(&ctx);