LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Sat May 26 21:31:46 CEST 2007
    Subject: [cvs-checkins] MODIFIED: mlite ...
    Top
    Date: 00/07/05 26:21:31

    Modified: mlite/kernel filesys.c
    Log:
    Permit "" to open root directory


    Revision Changes Path
    1.2 mlite/kernel/filesys.c

    http://www.opencores.org/cvsweb.shtml/mlite/kernel/filesys.c.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: filesys.c
    ===================================================================
    RCS file: /cvsroot/rhoads/mlite/kernel/filesys.c,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- filesys.c 20 May 2007 00:00:11 -0000 1.1
    +++ filesys.c 26 May 2007 19:31:46 -0000 1.2
    @@ -388,7 +388,7 @@
    file = (OS_FILE*)malloc(sizeof(OS_FILE));
    if(file == NULL)
    return NULL;
    - if(strcmp(name, "/") == 0)
    + if(name[0] == 0 || strcmp(name, "/") == 0)
    {
    FileOpen(file, NULL, NULL);
    return file;



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.