diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-11 21:44:36 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-11 21:44:36 +0000 |
commit | b2c632e20c75db5308ad694c02f60f4ac20b74cc (patch) | |
tree | 3624199fb8bec24d49c77cb9035e35e594e287ef | |
parent | 0518fd8571ed62ceddaf1c306e2032d3652f3218 (diff) | |
download | coreutils-b2c632e20c75db5308ad694c02f60f4ac20b74cc.tar.xz |
(main): Fix -d regression introduced with
--target-directory support at 2004-06-25.
-rw-r--r-- | src/install.c | 2 |
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")); |