diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-02 20:36:57 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-02 20:36:57 +0000 |
commit | a34f0b9990838d93085d02cd87ed14024aa8ffa9 (patch) | |
tree | 4d5f59678c98ca92555f14eb6293b56bd297a352 /bin/ln | |
parent | c765d33228533999fa93edb4ff5000c62ae9b41f (diff) |
Make usage() and manual match. OK jmc, deraadt
Diffstat (limited to 'bin/ln')
-rw-r--r-- | bin/ln/ln.1 | 22 | ||||
-rw-r--r-- | bin/ln/ln.c | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/bin/ln/ln.1 b/bin/ln/ln.1 index 5d29f9b9659..4e1c81132f7 100644 --- a/bin/ln/ln.1 +++ b/bin/ln/ln.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ln.1,v 1.21 2004/12/17 00:36:07 jaredy Exp $ +.\" $OpenBSD: ln.1,v 1.22 2005/12/02 20:36:56 cloder Exp $ .\" $NetBSD: ln.1,v 1.10 1995/07/25 19:37:04 jtc Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 @@ -42,12 +42,12 @@ .Sh SYNOPSIS .Nm ln .Op Fl fhns -.Ar source_file -.Op Ar target_file +.Ar sourcefile +.Op Ar targetfile .Nm ln .Op Fl fs -.Ar source_file ...\& -.Op Ar target_dir +.Ar sourcefile ...\& +.Op Ar targetdir .Sh DESCRIPTION The .Nm @@ -105,21 +105,21 @@ non-existent files. Given one or two arguments, .Nm creates a link to an existing file -.Ar source_file . +.Ar sourcefile . If -.Ar target_file +.Ar targetfile is given, the link has that name; -.Ar target_file +.Ar targetfile may also be a directory in which to place the link. Otherwise, it is placed in the current directory. If only the directory is specified, the link will be made to the last component of -.Ar source_file . +.Ar sourcefile . .Pp Given more than two arguments, .Nm makes links in -.Ar target_dir +.Ar targetdir to all the named source files. The links made will have the same name as the files being linked to. .Pp @@ -198,7 +198,7 @@ utility appeared in .At v3 . .Sh CAVEATS Since the -.Ar source_file +.Ar sourcefile must have its link count incremented, a hard link cannot be created to a file which is flagged immutable or append-only (see .Xr chflags 1 ) . diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 697b98cdd8b..bb5b12a71cc 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ln.c,v 1.12 2005/04/15 00:51:57 uwe Exp $ */ +/* $OpenBSD: ln.c,v 1.13 2005/12/02 20:36:56 cloder Exp $ */ /* $NetBSD: ln.c,v 1.10 1995/03/21 09:06:10 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94"; #else -static const char rcsid[] = "$OpenBSD: ln.c,v 1.12 2005/04/15 00:51:57 uwe Exp $"; +static const char rcsid[] = "$OpenBSD: ln.c,v 1.13 2005/12/02 20:36:56 cloder Exp $"; #endif #endif /* not lint */ @@ -173,8 +173,8 @@ usage(void) extern char *__progname; (void)fprintf(stderr, - "usage: %s [-fhns] file1 file2\n" - " %s [-fs] file ... directory\n", + "usage: %s [-fhns] sourcefile [targetfile]\n" + " %s [-fs] sourcefile ... [targetdir]\n", __progname, __progname); exit(1); } |