X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fexec_common.c;h=07113a1d02271a52ddd9e437ea5d3c9ec487ee7c;hb=e8db7f6eea9b35527ddd4532affabd18a30549b5;hp=a4cd5400b067f7e1e8872655bcbe1044247ea86d;hpb=2e444a5714593fb7659157cee2e7037577c0bdcd;p=debian%2Fsudo diff --git a/src/exec_common.c b/src/exec_common.c index a4cd540..07113a1 100644 --- a/src/exec_common.c +++ b/src/exec_common.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 Todd C. Miller + * Copyright (c) 2009-2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,7 +17,6 @@ #include #include -#include #include #ifdef STDC_HEADERS # include @@ -40,6 +39,8 @@ # include #endif #include +#include +#include #include "sudo.h" #include "sudo_exec.h" @@ -108,7 +109,7 @@ disable_execute(char *const envp[]) preload = fmt_string(RTLD_PRELOAD_VAR, sudo_conf_noexec_path()); # endif if (preload == NULL) - errorx(1, _("unable to allocate memory")); + fatalx(NULL); nenvp[env_len++] = preload; nenvp[env_len] = NULL; } else {