summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-11 21:44:36 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-11 21:44:36 +0000
commitb2c632e20c75db5308ad694c02f60f4ac20b74cc (patch)
tree3624199fb8bec24d49c77cb9035e35e594e287ef /src
parent0518fd8571ed62ceddaf1c306e2032d3652f3218 (diff)
downloadcoreutils-b2c632e20c75db5308ad694c02f60f4ac20b74cc.tar.xz
(main): Fix -d regression introduced with
--target-directory support at 2004-06-25.
Diffstat (limited to 'src')
-rw-r--r--src/install.c2
1 files changed, 1 insertions, 1 deletions
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"));