version 1.1.1.3, 2012/10/09 09:29:52
|
version 1.1.1.4, 2013/07/22 10:46:12
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2010-2011 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2010-2013 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 17
|
Line 17
|
#include <config.h> |
#include <config.h> |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/param.h> |
|
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/wait.h> |
#include <sys/wait.h> |
|
|
Line 306 find_editor(int nfiles, char * const files[], char **a
|
Line 305 find_editor(int nfiles, char * const files[], char **a
|
cp = strtok(editor, " \t"); |
cp = strtok(editor, " \t"); |
if (cp == NULL || |
if (cp == NULL || |
(editor_path = find_in_path(editor, plugin_state.envp)) == NULL) { |
(editor_path = find_in_path(editor, plugin_state.envp)) == NULL) { |
|
free(editor); |
return NULL; |
return NULL; |
} |
} |
if (editor_path != editor) |
if (editor_path != editor) |
Line 503 struct policy_plugin sample_policy = {
|
Line 503 struct policy_plugin sample_policy = {
|
* Note: This plugin does not differentiate between tty and pipe I/O. |
* Note: This plugin does not differentiate between tty and pipe I/O. |
* It all gets logged to the same file. |
* It all gets logged to the same file. |
*/ |
*/ |
struct io_plugin sample_io = { | __dso_public struct io_plugin sample_io = { |
SUDO_IO_PLUGIN, |
SUDO_IO_PLUGIN, |
SUDO_API_VERSION, |
SUDO_API_VERSION, |
io_open, |
io_open, |