summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-11 23:41:44 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-11 23:41:44 +0000
commitf4695512749ce0149960a50bc530eca67d145e4a (patch)
tree7be30a0be6628d465c08bd895ccc0225ad7594e6 /src/install.c
parent312acd2aade1d419ca60a13ff19ef17eda653c25 (diff)
downloadcoreutils-f4695512749ce0149960a50bc530eca67d145e4a.tar.xz
Further fix for -d regression.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index e913cb2a0..f69eaaf4d 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 <= !(dir_arg || target_directory))
+ if (n_files <= ! (dir_arg || target_directory))
{
if (n_files <= 0)
error (0, 0, _("missing file operand"));
@@ -347,7 +347,7 @@ main (int argc, char **argv)
usage (EXIT_FAILURE);
}
}
- else if (!target_directory)
+ else if (! (dir_arg || target_directory))
{
if (2 <= n_files && target_directory_operand (file[n_files - 1]))
target_directory = file[--n_files];