Changeset 3fe8f44b in rtems


Ignore:
Timestamp:
Nov 7, 2001, 11:59:26 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
a637c08
Parents:
ec1e4f4
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

    rec1e4f4 r3fe8f44b  
    482482
    483483  /*
    484    * Try to chdir to a file.
    485    */
     484   * Change file to executable then try to chdir to it.
     485   */
     486
     487  status = chmod( Files[0], S_IXUSR );
     488  assert( status != -1 );
    486489
    487490  printf("chdir to a file should fail with ENOTDIR\n");
Note: See TracChangeset for help on using the changeset viewer.