mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Sync time stamp defines with sudoers timestamp.h
The types and flags are now explicitly unsigned.
This commit is contained in:
parent
0c958e1852
commit
7d7dfbfd44
@ -60,14 +60,14 @@ Time stamp records have the following structure:
|
|||||||
.sp
|
.sp
|
||||||
.RS 0n
|
.RS 0n
|
||||||
/* Time stamp entry types */
|
/* Time stamp entry types */
|
||||||
#define TS_GLOBAL 0x01 /* not restricted by tty or ppid */
|
#define TS_GLOBAL 0x01U /* not restricted by tty or ppid */
|
||||||
#define TS_TTY 0x02 /* restricted by tty */
|
#define TS_TTY 0x02U /* restricted by tty */
|
||||||
#define TS_PPID 0x03 /* restricted by ppid */
|
#define TS_PPID 0x03U /* restricted by ppid */
|
||||||
#define TS_LOCKEXCL 0x04 /* special lock record */
|
#define TS_LOCKEXCL 0x04U /* special lock record */
|
||||||
|
|
||||||
/* Time stamp flags */
|
/* Time stamp flags */
|
||||||
#define TS_DISABLED 0x01 /* entry disabled */
|
#define TS_DISABLED 0x01U /* entry disabled */
|
||||||
#define TS_ANYUID 0x02 /* ignore uid, only valid in key */
|
#define TS_ANYUID 0x02U /* ignore uid, only valid in key */
|
||||||
|
|
||||||
struct timestamp_entry {
|
struct timestamp_entry {
|
||||||
unsigned short version; /* version number */
|
unsigned short version; /* version number */
|
||||||
|
@ -58,14 +58,14 @@ number and a 16-bit record size.
|
|||||||
Time stamp records have the following structure:
|
Time stamp records have the following structure:
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
/* Time stamp entry types */
|
/* Time stamp entry types */
|
||||||
#define TS_GLOBAL 0x01 /* not restricted by tty or ppid */
|
#define TS_GLOBAL 0x01U /* not restricted by tty or ppid */
|
||||||
#define TS_TTY 0x02 /* restricted by tty */
|
#define TS_TTY 0x02U /* restricted by tty */
|
||||||
#define TS_PPID 0x03 /* restricted by ppid */
|
#define TS_PPID 0x03U /* restricted by ppid */
|
||||||
#define TS_LOCKEXCL 0x04 /* special lock record */
|
#define TS_LOCKEXCL 0x04U /* special lock record */
|
||||||
|
|
||||||
/* Time stamp flags */
|
/* Time stamp flags */
|
||||||
#define TS_DISABLED 0x01 /* entry disabled */
|
#define TS_DISABLED 0x01U /* entry disabled */
|
||||||
#define TS_ANYUID 0x02 /* ignore uid, only valid in key */
|
#define TS_ANYUID 0x02U /* ignore uid, only valid in key */
|
||||||
|
|
||||||
struct timestamp_entry {
|
struct timestamp_entry {
|
||||||
unsigned short version; /* version number */
|
unsigned short version; /* version number */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user