(main): Fix my typo: s/argv[optind]/file[i]/.
authorJim Meyering <jim@meyering.net>
Wed, 15 Jun 2005 08:54:21 +0000 (08:54 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 15 Jun 2005 08:54:21 +0000 (08:54 +0000)
src/install.c

index 0fa08a2..b3d4129 100644 (file)
@@ -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;