From f54dfde2aa61c543e532dc3d0f9c9cdec279a6cf Mon Sep 17 00:00:00 2001
From: "Glenn F. Maynard" <glennm@mediaone.net>
Date: Mon, 22 Jun 1998 16:07:08 -0400
Subject: [PATCH] Fixed bug in f_file_stat(). Thanks to glennm@mediaone.net.

Rev: src/modules/files/efuns.c:1.51
---
 src/modules/files/efuns.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/files/efuns.c b/src/modules/files/efuns.c
index cfc4f25d8a..30f6102c3a 100644
--- a/src/modules/files/efuns.c
+++ b/src/modules/files/efuns.c
@@ -22,7 +22,7 @@
 #include "file_machine.h"
 #include "file.h"
 
-RCSID("$Id: efuns.c,v 1.50 1998/06/08 12:48:30 grubba Exp $");
+RCSID("$Id: efuns.c,v 1.51 1998/06/22 20:07:08 grubba Exp $");
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
@@ -110,7 +110,7 @@ void f_file_stat(INT32 args)
     error("Bad argument 1 to file_stat()\n");
 
   s = sp[-args].u.string->str;
-  l = (args>1 && !IS_ZERO(sp-1-args))?1:0;
+  l = (args>1 && !IS_ZERO(sp+1-args))?1:0;
   THREADS_ALLOW_UID();
 #ifdef HAVE_LSTAT
   if(l)
-- 
GitLab