mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +00:00
added STATICEDITOR
This commit is contained in:
2
visudo.c
2
visudo.c
@@ -104,8 +104,10 @@ main(argc, argv)
|
|||||||
/*
|
/*
|
||||||
* set up the Editor variable correctly
|
* set up the Editor variable correctly
|
||||||
*/
|
*/
|
||||||
|
#ifndef STATICEDITOR
|
||||||
if ( (Editor = getenv("EDITOR")) == NULL)
|
if ( (Editor = getenv("EDITOR")) == NULL)
|
||||||
if ( (Editor = getenv("VISUAL")) == NULL )
|
if ( (Editor = getenv("VISUAL")) == NULL )
|
||||||
|
#endif /* !STATICEDITOR */
|
||||||
Editor = EDITOR;
|
Editor = EDITOR;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user