Changeset 7952b336 in mainline


Ignore:
Timestamp:
2026-03-17T12:37:39Z (22 hours ago)
Author:
Vít Skalický <skalicky@…>
Children:
b017885
Parents:
8c35ebd
git-author:
Vít Skalický <skalicky@…> (2026-03-17 12:11:14)
git-committer:
Vít Skalický <skalicky@…> (2026-03-17 12:37:39)
Message:

Fix bad use of errno

File:
1 edited

Legend:

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

    r8c35ebd r7952b336  
    8484
    8585        DIR *dirp = opendir_internal(my_handle);
    86         rc = errno;
    87         if (rc != EOK) {
     86        if (!dirp) {
     87                rc = errno;
    8888                vfs_put(my_handle);
    8989                errno = rc;
     
    109109
    110110        DIR *dirp = opendir_internal(fd);
    111         rc = errno;
    112         if (rc != EOK) {
     111        if (!dirp) {
     112                rc = errno;
    113113                vfs_put(fd);
    114114                errno = rc;
Note: See TracChangeset for help on using the changeset viewer.