diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2002-10-12 20:32:03 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2002-10-12 20:32:03 +0000 |
| commit | d0899afa3a5823cfd4260292801bfcf8227a6214 (patch) | |
| tree | 161204988cfb79e83f43f1dad2cd0d69ce4d3608 /gnu/lib/libdialog | |
| parent | 0a331583f77894ba7d3be8d5d0b360d5fd3d8fb0 (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libdialog')
| -rw-r--r-- | gnu/lib/libdialog/kernel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/kernel.c b/gnu/lib/libdialog/kernel.c index c30e478457f8..d81ebfeee47e 100644 --- a/gnu/lib/libdialog/kernel.c +++ b/gnu/lib/libdialog/kernel.c @@ -75,11 +75,14 @@ * prove 'interesting' to say the least :-) * Added radiolist option * - Version 0.4 released. + * + * $FreeBSD$ */ #define __DIALOG_MAIN__ #include <dialog.h> +#include <err.h> #include "dialog.priv.h" #ifdef HAVE_NCURSES #include "colors.h" @@ -98,6 +101,11 @@ int DialogInputAttrs; */ void init_dialog(void) { + + if (issetugid()) { + errx(1, "libdialog is unsafe to use in setugid applications"); + } + #if defined(LOCALE) (void) setlocale(LC_ALL, ""); #endif |
