From: Todd C. Miller Date: Mon, 6 Dec 1993 01:34:40 +0000 (+0000) Subject: added STATICEDITOR X-Git-Tag: SUDO_1_3_0~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5dfa832eadb2e5cb0fe5d5e6c7d5849c970f835a;p=sudo added STATICEDITOR --- diff --git a/visudo.c b/visudo.c index e8546baad..13366b247 100644 --- a/visudo.c +++ b/visudo.c @@ -104,8 +104,10 @@ main(argc, argv) /* * set up the Editor variable correctly */ +#ifndef STATICEDITOR if ( (Editor = getenv("EDITOR")) == NULL) if ( (Editor = getenv("VISUAL")) == NULL ) +#endif /* !STATICEDITOR */ Editor = EDITOR; /*