summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-15 08:54:21 +0000
committerJim Meyering <jim@meyering.net>2005-06-15 08:54:21 +0000
commitec5b4733d8cca145ae7c296353e565a18c64efea (patch)
tree37f454cd3c13a08227112d071f806d1aa3b6dff0
parent8add4ac9cb1291b89904a931870ab4841e694d59 (diff)
downloadcoreutils-ec5b4733d8cca145ae7c296353e565a18c64efea.tar.xz
(main): Fix my typo: s/argv[optind]/file[i]/.
-rw-r--r--src/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 0fa08a25b..b3d41293b 100644
--- a/src/install.c
+++ b/src/install.c
@@ -360,7 +360,7 @@ main (int argc, char **argv)
int cwd_errno = 0;
for (i = 0; i < n_files; i++)
{
- if (cwd_errno != 0 && IS_RELATIVE_FILE_NAME (argv[optind]))
+ if (cwd_errno != 0 && IS_RELATIVE_FILE_NAME (file[i]))
{
error (0, cwd_errno, _("cannot return to working directory"));
ok = false;