Commit Graph

3304 Commits

Author SHA1 Message Date
Todd C. Miller
0f056c0d5f Use timespec throughout. 2004-09-08 15:48:23 +00:00
Todd C. Miller
5748664575 gettime.[co] 2004-09-08 15:47:35 +00:00
Todd C. Miller
8eb8badcc5 function to return the current time in a struct timespec 2004-09-08 15:47:09 +00:00
Todd C. Miller
a8972c6969 Not a darpa-sponsored file. 2004-09-08 14:51:53 +00:00
Todd C. Miller
54789c8fbd Add a check for struct timespec and provide it for those without. 2004-09-07 20:36:31 +00:00
Todd C. Miller
c0bfcc95c3 Add checks for st_mtim and st_mtimespec and add macros for pulling
the mtime sec and nsec out of struct stat.  These are used in sudo_edit()
to better tell whether or not the file has changed.
2004-09-07 19:57:00 +00:00
Todd C. Miller
7f772c822f Add an extra param to touch() for nsec 2004-09-07 19:55:37 +00:00
Todd C. Miller
707c3c2cb9 Call mkstemp() as the in invoking user so we don't have to chown the file later.
Only touch() the temp file if we can do it via the file descriptor.
Don't check for modification of the temp file if we lack fstat().
Catch errors read()ing the temp file.
2004-09-07 18:06:33 +00:00
Todd C. Miller
b243b0ad33 If path is NULL and fd == -1 return -1. 2004-09-07 18:04:48 +00:00
Todd C. Miller
47d25da64b closefrom() is overkill, the only extra fds are the ones we opened so
just close those in the child.
2004-09-07 17:31:54 +00:00
Todd C. Miller
1c20ff1a6d Use utimes() and futimes() instead of utime() in touch(), emulating as needed.
Not all systems are able to support setting the times of an fd so touch()
takes both an fd and a file name as arguments.
2004-09-07 17:14:52 +00:00
Aaron Spangler
03b53b6911 Rare SEGV 2004-09-07 01:12:34 +00:00
Todd C. Miller
1e0f96b912 regen 2004-09-06 20:46:28 +00:00
Todd C. Miller
eb49afe6c8 Add SUPPORT section and re-order some of the sections to match the order
we use in OpenBSD.
2004-09-06 20:45:27 +00:00
Aaron Spangler
2102b561ba Openldap ~/.ldaprc fix 2004-09-06 19:05:32 +00:00
Todd C. Miller
c6d8ea8afb Talk about how the editor must write its changes to the original file and
not just use rename(2).
2004-09-06 16:18:54 +00:00
Todd C. Miller
ac38939105 sync 2004-09-06 16:12:00 +00:00
Todd C. Miller
b701107b4e Keep the temp file open instead of re-opening after the editor has exited. 2004-09-06 16:11:42 +00:00
Todd C. Miller
e410bbb589 Update for current redhat/fedora core. 2004-09-06 16:10:42 +00:00
Aaron Spangler
fe020eca33 tls_ examples 2004-09-03 01:56:45 +00:00
Aaron Spangler
646d43cf5c config tls_* options 2004-09-02 04:03:25 +00:00
Todd C. Miller
2f153f2221 No need for -lcrypt when using pam. 2004-08-29 15:39:31 +00:00
Todd C. Miller
11fe0b0bfe regen 2004-08-27 03:57:19 +00:00
Aaron Spangler
2ceb87bc56 Allow --with-ldap-conf-file option to override LDAP_CONF 2004-08-27 03:44:35 +00:00
Aaron Spangler
b7ea12521a cleanup debug message 2004-08-27 02:08:10 +00:00
Aaron Spangler
2d3b307b93 more config info 2004-08-26 23:29:05 +00:00
Todd C. Miller
f30ab72c44 Add cmnd_base to struct sudo_user and set it in init_vars().
Add cmnd_stat to struct sudo_user and set it in sudo_goodpath().
No longer use gross statics in command_matches().
Also rename some variables for improved clarity.
2004-08-24 18:01:14 +00:00
Todd C. Miller
badd06688f document HP's crippled compiler deficiency. 2004-08-21 18:33:16 +00:00
Todd C. Miller
1e46c4d26d Fix some thinkos in --with-editor and --with-env-editor descriptions.
Noticed by Norihiko Murase.
2004-08-21 18:25:46 +00:00
Todd C. Miller
a6ea92617c --with-noexec takes an optional PATH argument. 2004-08-21 18:20:38 +00:00
Todd C. Miller
65d6b278b4 document --with-noexec 2004-08-21 18:20:11 +00:00
Todd C. Miller
0c0dcf2e32 sync 2004-08-17 20:21:58 +00:00
Todd C. Miller
6acae1b3be Better warning message when sudoedit is unable to write to the
destination file.
2004-08-17 19:11:47 +00:00
Todd C. Miller
2218f78279 regen 2004-08-17 18:53:31 +00:00
Todd C. Miller
ecc1efce9f Don't italicize the string "sudoedit" 2004-08-17 18:53:16 +00:00
Todd C. Miller
ad4b66e0eb Mention GratiSoft. 2004-08-16 22:45:52 +00:00
Todd C. Miller
4bc46dc93f regen 2004-08-11 18:29:36 +00:00
Todd C. Miller
4f03e9180c Reset used_runas to FALSE when re-intializing the parser. 2004-08-11 18:29:10 +00:00
Todd C. Miller
45805aa2ba Correct OpenBSD mips support 2004-08-09 23:04:35 +00:00
Todd C. Miller
ef12124c99 Add OpenBSD/mips 2004-08-09 21:28:56 +00:00
Aaron Spangler
f625769426 More behavior notes 2004-08-07 03:43:24 +00:00
Aaron Spangler
aafff3c21b Updates on current behavior 2004-08-07 03:36:11 +00:00
Todd C. Miller
0ad6600cc0 =back does not take an indentlevel (makes no difference to formatted files). 2004-08-06 23:56:15 +00:00
Todd C. Miller
6f44518f3b =back does not take an indentlevel (makes no difference to formatted files). 2004-08-06 23:56:15 +00:00
Todd C. Miller
23c0e4ea1b new 2004-08-06 23:48:17 +00:00
Todd C. Miller
3c6bb6c79c Consistency. Use same error for bad -u #uid when targetpw is set
as we do when a bad -u username is specified.
2004-08-06 23:42:52 +00:00
Todd C. Miller
8013ece9b9 Add checksum idea from Steve Mancini 2004-08-06 23:33:05 +00:00
Todd C. Miller
1e9dcd837a regen 2004-08-06 23:32:31 +00:00
Todd C. Miller
95ef976528 regen 2004-08-06 23:32:31 +00:00
Todd C. Miller
bc1b9cb80d Document the restriction on uids specified via -u when targetpw is set. 2004-08-06 23:31:20 +00:00