Audit unlink(1)

One small thing, use argv0 in usage.
Also, add a blank line in link.c which I forgot earlier.
This commit is contained in:
FRIGN 2015-02-28 20:05:22 +01:00
parent b9b28d4039
commit 39b9aab25a
3 changed files with 3 additions and 2 deletions

2
README
View File

@ -82,7 +82,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* uname yes none
#* unexpand yes none
=* uniq yes none
=* unlink yes none
=*| unlink yes none
=* uudecode yes none
=* uuencode yes none
#* wc yes none

1
link.c
View File

@ -19,6 +19,7 @@ main(int argc, char *argv[])
if (argc != 2)
usage();
if (link(argv[0], argv[1]) < 0)
eprintf("link:");

View File

@ -6,7 +6,7 @@
static void
usage(void)
{
eprintf("usage: unlink file\n");
eprintf("usage: %s file\n", argv0);
}
int