$OpenBSD: patch-scripts_xflock4,v 1.1 2008/02/13 13:08:53 landry Exp $
--- scripts/xflock4.orig	Wed Feb 13 13:23:00 2008
+++ scripts/xflock4	Wed Feb 13 13:23:12 2008
@@ -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
 else
     xlock $*
