Ignore:
Timestamp:
Nov 7, 2001, 11:57:59 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
47901d8
Parents:
bc2db66
Message:

2001-11-07 Jennifer Averett <jennifer@…>

Reported by Ibragimov Ilya <ibr@…> and tracked as PR63.

  • psxstat/test.c: Fix test ENOTDIR to correspond to chdir() change. Since we check permissions before evaluating enough to see if it a regular file or directory, this hack is needed to make the regular file executable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxstat/test.c

    rbc2db66 rf2278a8  
    484484
    485485  /*
    486    * Try to chdir to a file.
    487    */
     486   * Change file to executable then try to chdir to it.
     487   */
     488
     489  status = chmod( Files[0], S_IXUSR );
     490  assert( status != -1 );
    488491
    489492  printf("chdir to a file should fail with ENOTDIR\n");
Note: See TracChangeset for help on using the changeset viewer.