kn
9a9b50cee7
Provide realpath(1)
...
A tiny realpath(3) wrapper to make a porter's life easier.
Feedback kettenis deraadt cheloha sthen
OK cheloha martijn deraadt
2021-10-13 15:04:53 +00:00
deraadt
3aaa63eb46
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.
2019-06-28 13:34:58 +00:00
deraadt
0bd1216cbf
Change all tame callers to namechange to pledge(2).
2015-10-09 01:37:06 +00:00
deraadt
70e241c8f9
tame "stdio rpath", which covers readlink() and realpath()
...
ok semarie
2015-10-07 14:10:50 +00:00
jmc
f1c64ac4de
add an EXIT STATUS section for /usr/bin;
2010-09-03 11:09:28 +00:00
chl
4abb5f1a4f
add missing header needed by err()
...
ok otto@ millert@ gilles@
2009-05-01 10:36:48 +00:00
sobrado
49378797c9
replace hardcoded exit values with .Ex macros;
...
ok jmc@
2009-01-04 11:19:55 +00:00
sobrado
b2da3940d1
optional flags must be sorted and enclosed in single brackets,
...
as style(9) suggests; usage() should be a function; minor KNF fix
ok otto@
2007-09-10 07:42:26 +00:00
jmc
9490d37cb6
convert to new .Dd format;
2007-05-31 19:19:00 +00:00
otto
e2df4a02bf
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
2007-02-12 19:10:08 +00:00
deraadt
ea05e7da4d
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.
2006-05-09 17:44:53 +00:00
ray
fe161e66f5
Sync usage() with man page.
...
OK jmc@.
2006-05-09 17:03:51 +00:00
ray
2d58d79450
This change:
...
- checks for realpath(3) failure
- adds usage()
- uses <err.h>
- KNF
- prevents saving strlen() return value into an int
OK kjell@.
2006-05-08 22:33:04 +00:00
jmc
15a8c44ef6
realpath is section 3, not 2;
2005-04-04 13:54:12 +00:00
otto
76d6ced76c
Help people find the more or less hidden realpath(3) functionality
...
in readlink(1), and explain what it does more clearly. ok jmc@
2005-04-03 19:00:01 +00:00
deraadt
1837a5ca50
mostly ansi cleanup; pval ok
2003-06-10 22:20:44 +00:00
millert
f75387cb26
Remove the advertising clause in the UCB license which Berkeley
...
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-03 02:56:05 +00:00
aaron
f1ba34738e
Change all option list specifications to ".Bl -tag -width Ds". Most man
...
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.
2000-11-09 17:51:53 +00:00
aaron
ad32b772cb
Various cleanups and standardization.
2000-03-10 20:17:48 +00:00
aaron
8cf461a5aa
Finish standardizing options list introduction.
2000-03-05 00:28:49 +00:00
aaron
9e17188366
usr.bin/ man page cleanups, n-s
1998-09-27 16:57:47 +00:00
kstailey
16ecb5f718
do not mangle output of realpath()
1998-08-24 14:42:29 +00:00
mickey
1ba9b1e6db
use fprintf everytime for consitancy; help !ansi compilers as well
1998-07-08 04:36:37 +00:00
deraadt
77344ee581
readlink len-1
1998-05-18 19:10:06 +00:00
niklas
bc245223a2
readlink does not necessarily NUL-terminate
1997-11-18 22:52:10 +00:00
niklas
8c13db21c2
Stupid me reinventing the wheel. Use realpath(3).
1997-09-23 20:39:11 +00:00
deraadt
5202daae10
strncpy
1997-09-23 20:21:28 +00:00
niklas
bf4941a2e6
Add -f option to follow all symlinks recursively in a pathname
1997-09-23 20:13:21 +00:00
kstailey
a335383f13
s/OpenBSD/.Ox/
1997-09-05 20:32:05 +00:00
kstailey
e4d998c2f9
build manpage
1997-08-18 20:30:59 +00:00
kstailey
d13031e03e
document
1997-08-18 20:30:02 +00:00
kstailey
e980854739
use "limits.h" not "sys/syslimits.h"
1997-08-18 20:27:53 +00:00
kstailey
bf7a904eca
Change default behavior to print newline after contents of symlink.
...
Add "-n" flag to get old behavior.
1997-07-01 15:09:36 +00:00
kstailey
1922797ac2
don't include <err.h>
1997-06-29 19:20:31 +00:00
kstailey
ba60f10368
more p's in fprintf
1997-06-29 19:19:38 +00:00
deraadt
f33474677e
cannot use errx for usage
1997-06-29 19:01:18 +00:00
grr
deef5b56ec
RTFM
1997-06-28 04:56:49 +00:00
kstailey
e587ca1000
Copyright (29 lines of copyright for 21 lines of code) and tag
1997-06-20 12:18:57 +00:00
deraadt
81a265f705
Wall
1997-06-20 09:58:03 +00:00
kstailey
420a6d2ec4
goodbye perl
1997-06-12 15:22:37 +00:00