Commit 62f5344c authored by Christian Persch's avatar Christian Persch

Bug 574491 – gnome-pty-helper can prevent volumes from being unmounted

	* gnome-pty-helper/gnome-pty-helper.c: (main): chdir to /.

svn path=/trunk/; revision=2390
parent 1d9e2356
2009-03-15 Christian Persch <chpe@gnome.org>
Bug 574491 gnome-pty-helper can prevent volumes from being unmounted
* gnome-pty-helper/gnome-pty-helper.c: (main): chdir to /.
2009-03-15 Christian Persch <chpe@gnome.org>
* configure.in: Prepare version 0.20.0.
......
......@@ -665,6 +665,12 @@ main (int argc, char *argv [])
login_name = login_name_buffer;
}
/* Change directory so we don't prevent unmounting in case the initial cwd
* is on an external device (see bug #574491).
*/
if (chdir ("/") < 0)
fprintf (stderr, "Failed to chdir to /: %s\n", strerror (errno));
display_name = getenv ("DISPLAY");
if (!display_name)
display_name = "localhost";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment