]> Sergey Matveev's repositories - nnn.git/commitdiff
Use a different function
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 10 Aug 2021 01:36:20 +0000 (07:06 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 10 Aug 2021 01:36:20 +0000 (07:06 +0530)
src/nnn.c

index 8ba6c0de8ae338c89f79f0caf3fec84ebaac1a33..8b64f78bc971e226052ed7a1eaf467facf6c1bfa 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4566,7 +4566,7 @@ static bool handle_archive(char *fpath /* in-out param */, char op)
                                return FALSE;
                        }
                        /* Copy the new dir path to open it in smart context */
-                       outdir = realpath(".", NULL);
+                       outdir = getcwd(NULL, 0);
                        x_to = TRUE;
                }
        }