Changeset 8bb129d in mainline


Ignore:
Timestamp:
2009-05-06T20:54:53Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
386e276
Parents:
a248234
Message:

HelenOS open() returns the actual error code, not mere -1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cat/cat.c

    ra248234 r8bb129d  
    8888        char *buff = NULL;
    8989
    90         if (-1 == (fd = open(fname, O_RDONLY))) {
     90        fd = open(fname, O_RDONLY);
     91        if (fd < 0) {
    9192                printf("Unable to open %s\n", fname);
    9293                return 1;
Note: See TracChangeset for help on using the changeset viewer.