From: Paul Eggert Date: Wed, 11 Aug 2004 21:44:36 +0000 (+0000) Subject: (main): Fix -d regression introduced with X-Git-Tag: v5.3.0~796 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c632e20c75db5308ad694c02f60f4ac20b74cc;p=thirdparty%2Fcoreutils.git (main): Fix -d regression introduced with --target-directory support at 2004-06-25. --- 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"));