Skip to content

Commit 791a243

Browse files
committed
shuf-2.1
Fix printing file when file cannot be found. Update copyright years while here.
1 parent a7a4d2a commit 791a243

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017-2018 Brian Callahan <[email protected]>
1+
Copyright (c) 2017-2019 Brian Callahan <[email protected]>
22

33
Permission to use, copy, modify, and distribute this software for any
44
purpose with or without fee is hereby granted, provided that the above

shuf.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\"
22
.\" shuf - randomly permute input lines
33
.\"
4-
.\" Copyright (c) 2017-2018 Brian Callahan <[email protected]>
4+
.\" Copyright (c) 2017-2019 Brian Callahan <[email protected]>
55
.\"
66
.\" Permission to use, copy, modify, and distribute this software for any
77
.\" purpose with or without fee is hereby granted, provided that the above

shuf.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017-2018 Brian Callahan <[email protected]>
2+
* Copyright (c) 2017-2019 Brian Callahan <[email protected]>
33
*
44
* Permission to use, copy, modify, and distribute this software for any
55
* purpose with or without fee is hereby granted, provided that the above
@@ -196,8 +196,8 @@ static void
196196
version(void)
197197
{
198198

199-
fputs("shuf 2.0\n"
200-
"Copyright (c) 2017-2018 Brian Callahan <[email protected]>\n"
199+
fputs("shuf 2.1\n"
200+
"Copyright (c) 2017-2019 Brian Callahan <[email protected]>\n"
201201
"\nPermission to use, copy, modify, and distribute this software"
202202
" for any\npurpose with or without fee is hereby granted, "
203203
"provided that the above\ncopyright notice and this permission "
@@ -315,7 +315,7 @@ main(int argc, char *argv[])
315315
ifile = stdin;
316316
} else {
317317
if ((ifile = fopen(*argv, "r")) == NULL)
318-
err(1, "could not open %s", argv[1]);
318+
err(1, "could not open %s", *argv);
319319
}
320320

321321
repledge(oflag);

0 commit comments

Comments
 (0)