diff options
Diffstat (limited to 'coreutils/link.c')
-rw-r--r-- | coreutils/link.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/coreutils/link.c b/coreutils/link.c index 6e20dafe3..d8d583b7b 100644 --- a/coreutils/link.c +++ b/coreutils/link.c | |||
@@ -27,14 +27,12 @@ | |||
27 | int link_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 27 | int link_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
28 | int link_main(int argc UNUSED_PARAM, char **argv) | 28 | int link_main(int argc UNUSED_PARAM, char **argv) |
29 | { | 29 | { |
30 | opt_complementary = "=2"; /* exactly 2 params */ | 30 | getopt32(argv, "^" "" "\0" "=2"); |
31 | getopt32(argv, ""); | ||
32 | argv += optind; | 31 | argv += optind; |
33 | if (link(argv[0], argv[1]) != 0) { | 32 | if (link(argv[0], argv[1]) != 0) { |
34 | /* shared message */ | 33 | /* shared message */ |
35 | bb_perror_msg_and_die("can't create %slink " | 34 | bb_perror_msg_and_die("can't create %slink '%s' to '%s'", |
36 | "'%s' to '%s'", "hard", | 35 | "hard", argv[1], argv[0] |
37 | argv[1], argv[0] | ||
38 | ); | 36 | ); |
39 | } | 37 | } |
40 | return EXIT_SUCCESS; | 38 | return EXIT_SUCCESS; |