OpenBSD CVS

CVS log for src/usr.sbin/smtpd/Attic/newaliases.c


[BACK] Up to [local] / src / usr.sbin / smtpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9, Wed Dec 17 22:59:36 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +0 -0 lines
FILE REMOVED

Merge newaliases into makemap.

ok gilles@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 13 19:18:50 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.7: +9 -0 lines
Diff to previous 1.7 (colored)

Detect alias duplicates.

ok gilles@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 13 19:15:48 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.6: +25 -22 lines
Diff to previous 1.6 (colored)

Fix few parsing bugs in parse_entry, most severe of which was
segv on lines consisting exclusively of whitespace.

ok gilles@

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 13 19:11:33 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.5: +22 -40 lines
Diff to previous 1.5 (colored)

Simplify parse_entry; streamline the code to call db->put in one
place, regardless of number of preexisting aliases.

Don't call db->sync; it's covered by db->close shortly before rename.

ok chl@ gilles@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 13 19:05:26 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.4: +26 -15 lines
Diff to previous 1.4 (colored)

If parse_aliases fails, don't warn about syntax errors; it may fail
for other reasons.

Never exit outside main; we need to return to main to clean the
temp file.

Check parse_entry return code; otherwise $? == 0 even when invalid
entries were found.

ok gilles@

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 13 19:02:33 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.3: +19 -24 lines
Diff to previous 1.3 (colored)

Use mkstemp instead of mkdtemp; also, add more X's.

Do chmod before rename to eliminate short time window when aliases.db
is "official" but not readable.

Use PATH_ALIASESDB instead of hardcoding "/etc/mail/.."

Check db->close return code.

ok gilles@ henning@

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 13 18:58:28 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.2: +13 -28 lines
Diff to previous 1.2 (colored)

- Correct usage text.
- Drop static qualifiers.
- Drop unused -d switch.
- Use 0/1 exit codes instead of <sysexits.h> defines.

ok gilles@

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 13 13:15:38 2008 UTC (15 years, 5 months ago) by jacekm
Branch: MAIN
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

Declare alias_parse in smtpd.h, and fix callers that pass it wrong
number of arguments.

ok gilles@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 3 21:13:18 2008 UTC (15 years, 6 months ago) by gilles
Branch: MAIN

smtpd's aliases db is incompatible with sendmail's and requires a distinct
	newaliases utility. newaliases links to the aliases.c file from
	smtpd and only provides a frontend to parse aliases file.
	contains code from pyr@, chl@ and I, it should have been imported
	with smtpd.

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.