Commit Graph

3334 Commits

Author SHA1 Message Date
Todd C. Miller
fdaaeda58e regen 2004-09-23 17:35:55 +00:00
Todd C. Miller
2306b4eb51 make this work with autoconf-2.59 2004-09-23 17:35:40 +00:00
Todd C. Miller
5ac82331be Simplify logic around open & stat of files and do sanity on edited
file even if we lack fstat (still racable but worth doing).
2004-09-16 16:58:03 +00:00
Todd C. Miller
4bf59231e5 Add support url 2004-09-15 22:47:48 +00:00
Todd C. Miller
075af35f95 versino 1.6.8p1 2004-09-15 20:11:22 +00:00
Todd C. Miller
98e8b1a150 more changes for 1.6.8p1 2004-09-15 19:20:24 +00:00
Todd C. Miller
55be146f08 1.6.8p1 2004-09-15 19:18:38 +00:00
Todd C. Miller
12c78c0f6d Add sanity check so we don't try to edit something other than a regular file. 2004-09-15 16:16:20 +00:00
Aaron Spangler
bbfe3c0a66 sync 2004-09-15 00:55:00 +00:00
Aaron Spangler
beb6773572 document --with-ldap-conf-file 2004-09-15 00:21:59 +00:00
Todd C. Miller
ec404a074a political correctness strikes again 2004-09-14 21:43:31 +00:00
Todd C. Miller
e3161b7a9c sync 2004-09-14 19:09:00 +00:00
Todd C. Miller
13a265e0ed Install sudoedit man link 2004-09-12 23:50:35 +00:00
Todd C. Miller
e4dcb79194 Update PAM note and mention where HP-UX users can download gcc binaries. 2004-09-12 18:25:54 +00:00
Todd C. Miller
4aa5447ab9 libtool wants to install stuff from .libs so fake one up for binary
installations.
2004-09-12 16:08:25 +00:00
Todd C. Miller
3dcceccfcb rm -f old sudoedit link instead of using ln -f
set LIBTOOL correctly
2004-09-12 15:53:28 +00:00
Todd C. Miller
75866326a2 Deal with "uname -m" having slashes in it
rm -f old sudoedit link instead of using ln -f
2004-09-12 15:53:03 +00:00
Todd C. Miller
5f8b2d6464 Makefile.binary -> Makefile.binary.in for config.status substitution
Add support for installing noexec bits
2004-09-12 14:22:36 +00:00
Todd C. Miller
b503734d0d Copy noexec bits into binary dists too
No longer use my old arch script for making binary dists
2004-09-12 14:21:49 +00:00
Todd C. Miller
35e0ade7a8 Install sudoedit link. 2004-09-12 13:36:43 +00:00
Todd C. Miller
9cc4d46d16 avoid __P so there is no need for compat.h to be included 2004-09-11 16:25:27 +00:00
Todd C. Miller
6efac29fb0 Don't use HAVE_UTIME_H before including config.h. 2004-09-11 16:24:28 +00:00
Todd C. Miller
dc3bbe24c5 Fix Solatis futimes macro 2004-09-10 16:31:15 +00:00
Todd C. Miller
c932482733 Rename ots -> omtim for improved readability. 2004-09-09 15:02:28 +00:00
Todd C. Miller
611b0ca14c Redo changes in revision 1.7. Don't really need to keep the temp
file open; re-opening it with the invoking user's euid is sufficient.
2004-09-08 18:38:06 +00:00
Todd C. Miller
4cde080f9d sync 2004-09-08 18:36:36 +00:00
Todd C. Miller
5e12b105f6 regen 2004-09-08 18:35:53 +00:00
Todd C. Miller
a5e0ff8640 back out revision 1.70; it is no long applicable 2004-09-08 18:34:38 +00:00
Todd C. Miller
01dbe19ba1 Let the loader initialize nep 2004-09-08 15:57:49 +00:00
Todd C. Miller
70d8f78328 Removed unneed check for fchown
Add check for gettimeofday
Move autoheader template stuff into separate AH_TEMPLATE lines
2004-09-08 15:49:26 +00:00
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