version 1.1.1.4, 2013/07/22 10:46:12
|
version 1.1.1.5, 2014/06/15 16:12:54
|
Line 55
|
Line 55
|
|
|
#include <pathnames.h> |
#include <pathnames.h> |
#include "sudo_plugin.h" |
#include "sudo_plugin.h" |
|
#include "sudo_util.h" |
#include "missing.h" |
#include "missing.h" |
|
|
/* |
/* |
Line 138 policy_open(unsigned int version, sudo_conv_t conversa
|
Line 139 policy_open(unsigned int version, sudo_conv_t conversa
|
if (strncmp(*ui, "runas_group=", sizeof("runas_group=") - 1) == 0) { |
if (strncmp(*ui, "runas_group=", sizeof("runas_group=") - 1) == 0) { |
runas_group = *ui + sizeof("runas_group=") - 1; |
runas_group = *ui + sizeof("runas_group=") - 1; |
} |
} |
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME) |
|
if (strncmp(*ui, "progname=", sizeof("progname=") - 1) == 0) { |
if (strncmp(*ui, "progname=", sizeof("progname=") - 1) == 0) { |
setprogname(*ui + sizeof("progname=") - 1); | initprogname(*ui + sizeof("progname=") - 1); |
} |
} |
#endif |
|
/* Check to see if sudo was called as sudoedit or with -e flag. */ |
/* Check to see if sudo was called as sudoedit or with -e flag. */ |
if (strncmp(*ui, "sudoedit=", sizeof("sudoedit=") - 1) == 0) { |
if (strncmp(*ui, "sudoedit=", sizeof("sudoedit=") - 1) == 0) { |
if (strcasecmp(*ui + sizeof("sudoedit=") - 1, "true") == 0) |
if (strcasecmp(*ui + sizeof("sudoedit=") - 1, "true") == 0) |