(main): Fix -d regression introduced with
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Aug 2004 21:44:36 +0000 (21:44 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Aug 2004 21:44:36 +0000 (21:44 +0000)
--target-directory support at 2004-06-25.

src/install.c

index c9e1f4d..e913cb2 100644 (file)
@@ -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"));