OpenBSD CVS

CVS log for src/usr.bin/vi/build/recover


[BACK] Up to [local] / src / usr.bin / vi / build

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 17 15:41:17 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.12: +12 -10 lines
Diff to previous 1.12 (colored)

Use the strict pragma for better warnings.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 3 15:44:36 2018 UTC (6 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.11: +7 -2 lines
Diff to previous 1.11 (colored)

The recover script should have the same sanity checks as recover.c.
Specifically, open files with O_NONBLOCK and enforce a mode of 0600.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 5 16:21:56 2016 UTC (7 years, 7 months ago) by afresh1
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored)

Remove syscall.ph from vi.recover

since perl-5.10 chdir supports fchdir

ok guenther@

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 8 15:09:32 2016 UTC (7 years, 10 months ago) by sobrado
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

/tmp and /var/tmp are the same, consistently use the former in both
build/recover and documentation.

ok millert@, tb@, martijn@ and schwarze@

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 21:29:39 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.7: +23 -7 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Errata #16
A security issue exists in the vi.recover script that may allow an attacker
to remove arbitrary zero-length files, regardless of ownership.
Fix (millert):
Add more sanity checks of path data in the vi recovery file; potential
problems pointed out by lumpy@the.whole.net

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Wed Nov 14 03:12:23 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.7: +23 -7 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull in patch from current (Errata 007, shaken, not stirred):
Add more sanity checks of path data in the vi recovery file; potential problems
pointed out by lumpy@the.whole.net

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:08 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

change a stat() to lstat()

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 5 22:43:49 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.7: +23 -7 lines
Diff to previous 1.7 (colored)

Add more sanity checks of path data in the vi recovery file; potential problems pointed out by lumpy@the.whole.net

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 11 04:56:52 2001 UTC (23 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_2_9_BASE
Branch point for: OPENBSD_3_0, OPENBSD_2_9
Changes since 1.6: +14 -9 lines
Diff to previous 1.6 (colored)

grep() returns a list of aliases to entries in the original list
so modifying them directly results in a munged line in the resulting
mail message that gets sent out.  Similar to a patch from cazz@wezl.org;
closes PR 1617

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 21 17:06:13 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.5: +42 -16 lines
Diff to previous 1.5 (colored)

Remove the races so that this is safe to run anytime.  We open
/var/tmp/vi.recover to get an fd and user O_NOFOLLOW to following a symlink.
Once we have a file handle we can use it to safely chdir to the right
place and form then on do operations relative to ".".  Also restrict
to root.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 20 15:24:24 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.4: +10 -3 lines
Diff to previous 1.4 (colored)

If recover dir is not owned by root, chown it.  If the mode is not
01777, fix that too.  This is safe because the script is run before
user processes start.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Mar 9 21:24:02 2000 UTC (24 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Pull in fnctl modeul so we are sure to get O_* for sysopen().

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 20 18:19:45 2000 UTC (24 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Use sysopen() when opening recover files.  This is purely paranoia
since we check that the filename matches '^recover' and hence the
first character cannot play games with perl's magic open().

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 11 20:07:19 1999 UTC (24 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.1: +69 -41 lines
Diff to previous 1.1 (colored)

Rewrite in perl for safety and paranoia.  It might have been possible
to play tricks with filesnames that include spaces.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 27 23:29:12 1997 UTC (26 years, 10 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2

move recover script ala 1.79.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.