$OpenBSD: patch-scripts_xflock4,v 1.2 2011/01/18 20:25:56 landry Exp $
--- scripts/xflock4.orig	Sun Jan 16 17:02:27 2011
+++ scripts/xflock4	Tue Jan 18 16:01:44 2011
@@ -19,9 +19,9 @@
 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #
 
-if test x"`which xscreensaver-command 2>/dev/null`" != x""; then
+if test x"`whereis xscreensaver-command`" != x""; then
     xscreensaver-command -lock 
-elif test x"`which gnome-screensaver-command 2>/dev/null`" != x""; then
+elif test x"`whereis gnome-screensaver-command`" != x""; then
     gnome-screensaver-command --lock
 elif test x"`which slock 2>/dev/null`" != x""; then
    slock
