Changeset 4a0a5d5 in git


Ignore:
Timestamp:
Jun 5, 2000, 2:23:10 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5ce07936033d823db35487445a4286b4a3a3f94b
Parents:
0bcebab457fea8b759de0450976f3d0b3423072a
Message:
*hannes: do not allow dirs to be opened by feFopen


git-svn-id: file:///usr/local/Singular/svn/trunk@4427 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/febase.cc

    r0bcebab r4a0a5d5  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: febase.cc,v 1.86 2000-04-27 10:07:06 obachman Exp $ */
     4/* $Id: febase.cc,v 1.87 2000-06-05 12:23:10 Singular Exp $ */
    55/*
    66* ABSTRACT: i/o system
     
    1515#include <limits.h>
    1616#include <stdarg.h>
     17#include <sys/stat.h>
    1718#ifndef __MWERKS__
    1819#include <unistd.h>
     
    139140  FILE * f=NULL;
    140141  if (! path_only)
    141     f = myfopen(path,mode);
     142  {
     143    struct stat statbuf;
     144    if ((stat(path,&statbuf)==0)
     145    && (S_ISREG(statbuf.st_mode)))
     146      f = myfopen(path,mode);
     147  }
    142148  if (where!=NULL) strcpy(where,path);
    143149  if ((*mode=='r') &&
Note: See TracChangeset for help on using the changeset viewer.