Provide getcwd(NULL, 0) for Solaris (SunOS5)
[exim.git] / src / src / exim.c
index 3b6a9ba69ec4628d1a25be78e9f6baf2e027c85a..6a4fb5af344087fe93942d96afbe79962a903863 100644 (file)
@@ -3748,7 +3748,7 @@ directory to "/"! Later we change to $spool_directory. We do it there, because
 during readconf_main() some expansion takes place already. */
 
 /* Store the initial cwd before we change directories */
-if ((initial_cwd = getcwd(NULL, 0)) == NULL)
+if ((initial_cwd = os_getcwd(NULL, 0)) == NULL)
   {
   perror("exim: can't get the current working directory");
   exit(EXIT_FAILURE);
@@ -4572,7 +4572,7 @@ if (list_options)
 if (list_config)
   {
   set_process_info("listing config");
-  readconf_print(US"config", NULL, FALSE);
+  readconf_print(US"config", NULL, flag_n);
   exim_exit(EXIT_SUCCESS);
   }