FreeBSD Bugzilla – Attachment 70919 Details for
Bug 103395
security/gnome-ssh-askpass interferes with gnome-screensaver
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.40 KB, created by
vova
on 2006-09-19 07:40:22 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
vova
Created:
2006-09-19 07:40:22 UTC
Size:
2.40 KB
patch
obsolete
>Index: files/patch-grab-keyboard >=================================================================== >RCS file: files/patch-grab-keyboard >diff -N files/patch-grab-keyboard >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-grab-keyboard 19 Sep 2006 06:06:35 -0000 >@@ -0,0 +1,58 @@ >+--- contrib/gnome-ssh-askpass2.c.orig Tue Sep 19 09:58:45 2006 >++++ contrib/gnome-ssh-askpass2.c Tue Sep 19 10:03:27 2006 >+@@ -88,12 +88,13 @@ >+ { >+ const char *failed; >+ char *passphrase, *local; >+- int result, grab_tries, grab_server, grab_pointer; >++ int result, grab_tries, grab_server, grab_pointer, grab_keyboard; >+ GtkWidget *dialog, *entry; >+ GdkGrabStatus status; >+ >+ grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL); >+ grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL); >++ grab_keyboard = (getenv("GNOME_SSH_ASKPASS_GRAB_KEYBOARD") != NULL); >+ grab_tries = 0; >+ >+ dialog = gtk_message_dialog_new(NULL, 0, >+@@ -135,17 +136,21 @@ >+ } >+ } >+ } >+- for(;;) { >+- status = gdk_keyboard_grab((GTK_WIDGET(dialog))->window, >+- FALSE, GDK_CURRENT_TIME); >+- if (status == GDK_GRAB_SUCCESS) >+- break; >+- usleep(GRAB_WAIT * 1000); >+- if (++grab_tries > GRAB_TRIES) { >+- failed = "keyboard"; >+- goto nograbkb; >++ >++ if (grab_keyboard) { >++ for(;;) { >++ status = gdk_keyboard_grab((GTK_WIDGET(dialog))->window, >++ FALSE, GDK_CURRENT_TIME); >++ if (status == GDK_GRAB_SUCCESS) >++ break; >++ usleep(GRAB_WAIT * 1000); >++ if (++grab_tries > GRAB_TRIES) { >++ failed = "keyboard"; >++ goto nograbkb; >++ } >+ } >+ } >++ >+ if (grab_server) { >+ gdk_x11_grab_server(); >+ } >+@@ -157,7 +162,8 @@ >+ XUngrabServer(GDK_DISPLAY()); >+ if (grab_pointer) >+ gdk_pointer_ungrab(GDK_CURRENT_TIME); >+- gdk_keyboard_ungrab(GDK_CURRENT_TIME); >++ if (grab_keyboard) >++ gdk_keyboard_ungrab(GDK_CURRENT_TIME); >+ gdk_flush(); >+ >+ /* Report passphrase if user selected OK */ >#
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 103395
: 70919