httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apache-1.3/src/os/netware os.c
Date Fri, 30 Mar 2001 16:15:47 GMT
bnicholes    01/03/30 08:15:47

  Modified:    src/os/netware os.c
  Log:
  no message
  
  Revision  Changes    Path
  1.14      +27 -0     apache-1.3/src/os/netware/os.c
  
  Index: os.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/netware/os.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- os.c	2001/02/27 03:59:53	1.13
  +++ os.c	2001/03/30 16:15:46	1.14
  @@ -297,3 +297,30 @@
       return 1;
   }
   
  +#undef opendir_411
  +DIR *os_opendir (const char *pathname)
  +{
  +    DIR *d = opendir_411 (pathname);
  +
  +    if (d) {
  +        strcpy (d->d_name, "<<**");
  +    }
  +    return d;
  +}
  +
  +#undef readdir_411
  +DIR *os_readdir (DIR *dirP)
  +{
  +    if ((dirP->d_name[0] == '<') && (dirP->d_name[2] == '*')) {
  +        strcpy (dirP->d_name, ".");
  +        strcpy (dirP->d_nameDOS, ".");
  +        return (dirP);
  +    }
  +    else if ((dirP->d_name[0] == '.') && (dirP->d_name[1] == '\0')) {
  +        strcpy (dirP->d_name, "..");
  +        strcpy (dirP->d_nameDOS, "..");
  +        return (dirP);
  +    }
  +    else
  +        return readdir_411 (dirP);
  +}
  
  
  

Mime
View raw message