OpenBSD CVS

CVS log for src/usr.bin/readlink/readlink.c


[BACK] Up to [local] / src / usr.bin / readlink

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:03 2019 UTC (4 years, 10 months ago) by deraadt
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, HEAD
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:08 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 7 14:10:50 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +4 -1 lines
Diff to previous 1.25 (colored)

tame "stdio rpath", which covers readlink() and realpath()
ok semarie

Revision 1.25 / (download) - annotate - [select for diffs], Fri May 1 10:36:48 2009 UTC (15 years ago) by chl
Branch: MAIN
CVS Tags: 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
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

add missing header needed by err()

ok otto@ millert@ gilles@

Revision 1.24 / (download) - annotate - [select for diffs], Mon Sep 10 07:42:26 2007 UTC (16 years, 8 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.23: +15 -10 lines
Diff to previous 1.23 (colored)

optional flags must be sorted and enclosed in single brackets,
as style(9) suggests; usage() should be a function; minor KNF fix

ok otto@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 12 19:10:08 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.22: +5 -4 lines
Diff to previous 1.22 (colored)

if -f is not used, readlink should not print anything on error, but if
-f is used, handle errors like it should. ok'ed by deraadt@ some time
ago but then forgotten

Revision 1.22 / (download) - annotate - [select for diffs], Tue May 9 17:44:53 2006 UTC (18 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.21: +23 -26 lines
Diff to previous 1.21 (colored)

back out change that busted how the tree builds
not approved by the right people, not tested by the right people,
and work done by people who don't know how to test what they write
you know who you are -- stop screwing with things you refuse to test
completely.

Revision 1.21 / (download) - annotate - [select for diffs], Tue May 9 17:03:51 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Sync usage() with man page.

OK jmc@.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 8 22:33:04 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.19: +26 -23 lines
Diff to previous 1.19 (colored)

This change:
 - checks for realpath(3) failure
 - adds usage()
 - uses <err.h>
 - KNF
 - prevents saving strlen() return value into an int

OK kjell@.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:50 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.18: +2 -4 lines
Diff to previous 1.18 (colored)

mostly ansi cleanup; pval ok

Revision 1.18 / (download) - annotate - [select for diffs], Mon Aug 24 14:45:33 1998 UTC (25 years, 9 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored)

do not mangle output of realpath()

Revision 1.17 / (download) - annotate - [select for diffs], Mon Aug 24 14:43:16 1998 UTC (25 years, 9 months ago) by kstailey
Branch: MAIN
Changes since 1.16: +6 -5 lines
Diff to previous 1.16 (colored)

do not mangle output of realpath()

Revision 1.16 / (download) - annotate - [select for diffs], Mon Aug 24 14:42:29 1998 UTC (25 years, 9 months ago) by kstailey
Branch: MAIN
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored)

do not mangle output of realpath()

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 8 04:36:37 1998 UTC (25 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.14: +7 -4 lines
Diff to previous 1.14 (colored)

use fprintf everytime for consitancy; help !ansi compilers as well

Revision 1.14 / (download) - annotate - [select for diffs], Mon May 18 19:12:03 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

readlink len-1

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 18 22:52:10 1997 UTC (26 years, 6 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

readlink does not necessarily NUL-terminate

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 23 20:39:11 1997 UTC (26 years, 8 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.11: +3 -62 lines
Diff to previous 1.11 (colored)

Stupid me reinventing the wheel.  Use realpath(3).

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 23 20:21:28 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

strncpy

Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 23 20:13:21 1997 UTC (26 years, 8 months ago) by niklas
Branch: MAIN
Changes since 1.9: +79 -9 lines
Diff to previous 1.9 (colored)

Add -f option to follow all symlinks recursively in a pathname

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 18 20:27:53 1997 UTC (26 years, 9 months ago) by kstailey
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

use "limits.h" not "sys/syslimits.h"

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 1 15:09:36 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.7: +21 -5 lines
Diff to previous 1.7 (colored)

Change default behavior to print newline after contents of symlink.
Add "-n" flag to get old behavior.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 29 19:20:31 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

don't include <err.h>

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 29 19:19:38 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

more p's in fprintf

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 29 19:01:18 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +5 -3 lines
Diff to previous 1.4 (colored)

cannot use errx for usage

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 28 04:56:49 1997 UTC (26 years, 10 months ago) by grr
Branch: MAIN
Changes since 1.3: +6 -4 lines
Diff to previous 1.3 (colored)

RTFM

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 20 12:18:57 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.2: +29 -0 lines
Diff to previous 1.2 (colored)

Copyright (29 lines of copyright for 21 lines of code) and tag

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 20 10:09:41 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

Wall

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 12 15:22:37 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN

goodbye perl

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.