vte r2390 - in trunk: . gnome-pty-helper
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2390 - in trunk: . gnome-pty-helper
- Date: Mon, 23 Mar 2009 12:12:51 +0000 (UTC)
Author: chpe
Date: Mon Mar 23 12:12:51 2009
New Revision: 2390
URL: http://svn.gnome.org/viewvc/vte?rev=2390&view=rev
Log:
Bug 574491 â gnome-pty-helper can prevent volumes from being unmounted
* gnome-pty-helper/gnome-pty-helper.c: (main): chdir to /.
Modified:
trunk/ChangeLog
trunk/gnome-pty-helper/gnome-pty-helper.c
Modified: trunk/gnome-pty-helper/gnome-pty-helper.c
==============================================================================
--- trunk/gnome-pty-helper/gnome-pty-helper.c (original)
+++ trunk/gnome-pty-helper/gnome-pty-helper.c Mon Mar 23 12:12:51 2009
@@ -665,6 +665,12 @@
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";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]