[Toybox] [PATCH] add missing argument to error_exit in ln_main
enh
enh at google.com
Wed Feb 25 21:32:22 PST 2015
diff --git a/toys/posix/ln.c b/toys/posix/ln.c
index 04b4f29..06700dd 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;
}
1424928742.0
More information about the Toybox
mailing list