From b2c632e20c75db5308ad694c02f60f4ac20b74cc Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 11 Aug 2004 21:44:36 +0000 Subject: [PATCH] (main): Fix -d regression introduced with --target-directory support at 2004-06-25. --- src/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.c b/src/install.c index c9e1f4d955..e913cb2a01 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")); -- 2.47.2