From b2c632e20c75db5308ad694c02f60f4ac20b74cc Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 11 Aug 2004 21:44:36 +0000 Subject: (main): Fix -d regression introduced with --target-directory support at 2004-06-25. --- src/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/install.c b/src/install.c index c9e1f4d95..e913cb2a0 100644 --- a/src/install.c +++ b/src/install.c @@ -325,7 +325,7 @@ main (int argc, char **argv) n_files = argc - optind; file = argv + optind; - if (n_files <= !target_directory) + if (n_files <= !(dir_arg || target_directory)) { if (n_files <= 0) error (0, 0, _("missing file operand")); -- cgit v1.2.3-70-g09d2