Changeset c725619 in mainline


Ignore:
Timestamp:
2017-03-18T14:43:32Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b97336
Parents:
f6b6b40
Message:

Test vfs_root() return value more robustly

In particular, vfs_root() does not set errno and returns a negative
return code. In some cases it returns ENOENT, which happens to be -1,
but this is not guaranteed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    rf6b6b40 rc725619  
    151151        }
    152152        int root = vfs_root();
    153         if (root == -1) {
     153        if (root < 0) {
    154154                free(p);
    155155                return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.