[sysprof] tools/sysprof-agent: set cwd to . unless --directory specified



commit 2f325fbf540fb57d43d913794bb358f9a57a30f9
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 1 10:04:59 2022 -0700

    tools/sysprof-agent: set cwd to . unless --directory specified

 src/tools/sysprof-agent.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/tools/sysprof-agent.c b/src/tools/sysprof-agent.c
index 0cb617ae..4e080404 100644
--- a/src/tools/sysprof-agent.c
+++ b/src/tools/sysprof-agent.c
@@ -541,6 +541,8 @@ main (int   argc,
 
       if (directory != NULL)
         sysprof_profiler_set_spawn_cwd (profiler, directory);
+      else
+        sysprof_profiler_set_spawn_cwd (profiler, ".");
     }
 
   /* Now open the writer for our session */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]