Skip to content
Snippets Groups Projects
Commit f54dfde2 authored by Glenn F. Maynard's avatar Glenn F. Maynard Committed by Henrik (Grubba) Grubbström
Browse files

Fixed bug in f_file_stat(). Thanks to glennm@mediaone.net.

Rev: src/modules/files/efuns.c:1.51
parent 534f73d5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment