aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ln.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-01 15:58:40 -0600
committerRob Landley <rob@landley.net>2015-03-01 15:58:40 -0600
commit70a84a356b1c56743618362867b9300007d11998 (patch)
tree2db214da036464cd76a2accb1191e3a9cdc1fc26 /toys/posix/ln.c
parent7c3c6a9639ee41fb750f78d87dc8a6cbe4e421a5 (diff)
downloadtoybox-70a84a356b1c56743618362867b9300007d11998.tar.gz
Patches from Elliott Hughes to add missing arguments to error_exit() calls.
Diffstat (limited to 'toys/posix/ln.c')
-rw-r--r--toys/posix/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ln.c b/toys/posix/ln.c
index 04b4f292..06700dd0 100644
--- a/toys/posix/ln.c
+++ b/toys/posix/ln.c
@@ -40,7 +40,7 @@ void ln_main(void)
if (((toys.optflags&FLAG_n) ? lstat : stat)(dest, &buf)
|| !S_ISDIR(buf.st_mode))
{
- if (toys.optc>1) error_exit("'%s' not a directory");
+ if (toys.optc>1) error_exit("'%s' not a directory", dest);
buf.st_mode = 0;
}