source: trunk/tools/bin/cpio.diff@ 327

Last change on this file since 327 was 108, checked in by dmik, 15 years ago

tools: cpio would attempt to create a drive letter and fail if the -d option and the absolute target path was given.

File size: 651 bytes
  • makepath.c

    old new  
    127127        }
    128128
    129129      slash = dirpath;
     130#ifdef __MSDOS__
     131      /* Skip the drive letter, no need to create it.  */
     132      if (isalpha(slash[0]) && slash[1] == ':')
     133        slash += 2;     
     134#endif
    130135      while (*slash == '/')
    131136        slash++;
    132137      while ((slash = index (slash, '/')))
     
    137142#endif
    138143          *slash = '\0';
    139144          if (stat (dirpath, &stats))
    140             {
     145                {
    141146#ifdef HPUX_CDF
    142147              /* If this component of the pathname ends in `+' and is
    143148                 followed by 2 `/'s, then this is a CDF.  We remove the
Note: See TracBrowser for help on using the repository browser.