]> granicus.if.org Git - sudo/commitdiff
added STATICEDITOR
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Dec 1993 01:34:40 +0000 (01:34 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Dec 1993 01:34:40 +0000 (01:34 +0000)
visudo.c

index e8546baad202401d3240cf14d3fbad5fa5a4d036..13366b247e80d5c11c973440d54e117f92fe39e0 100644 (file)
--- 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;
 
     /*