Lines Matching defs:editor
147 char *args, *editor, *sudoers_path;
209 * existing errors and to pull in editor and env_editor conf values.
218 editor = get_editor(&args);
232 edit_sudoers(sp, editor, args, -1);
236 reparse_sudoers(editor, args, strict, quiet);
275 edit_sudoers(sp, editor, args, lineno)
277 char *editor, *args;
327 /* Does the editor support +lineno? */
330 char *editor_base = strrchr(editor, '/');
334 editor_base = editor;
350 /* Disable +lineno if editor doesn't support it. */
373 if ((av[0] = strrchr(editor, '/')) != NULL)
376 av[0] = editor;
391 * We cannot check the editor's exit value against 0 since
396 if (run_command(editor, av) != -1) {
413 warningx("editor (%s) failed, %s unchanged", editor, sp->path);
423 * time in the editor we can't tell if the file was changed.
446 reparse_sudoers(editor, args, strict, quiet)
447 char *editor, *args;
505 edit_sudoers(sp, editor, args, errorlineno);
519 edit_sudoers(sp, editor, args, errorlineno);
896 * Check VISUAL and EDITOR environment variables to see which editor
913 errorx(1, "specified editor (%s) doesn't exist!", UserEditor);
936 error(1, "unable to stat editor (%s)", UserEditor);
984 errorx(1, "no editor found (editor path = %s)", def_editor);