Skip to content

Commit

Permalink
fix Linux code
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed Apr 7, 2024
1 parent ef89712 commit 3831aa1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions libjcore/code/jMountUtil_UNIX.cpp
Expand Up @@ -218,8 +218,7 @@ JGetUserMountPointList
{
time_t t;
if (state != nullptr &&
(!JGetModificationTime(_PATH_FSTAB, &t).OK() ||
t == state->modTime))
(!JGetModificationTime(_PATH_FSTAB, &t) || t == state->modTime))
{
return false;
}
Expand Down Expand Up @@ -283,8 +282,7 @@ JGetUserMountPointList
{
time_t t;
if (state != nullptr &&
(!JGetModificationTime(kAvailInfoName, &t).OK() ||
t == state->modTime))
(!JGetModificationTime(kAvailInfoName, &t) || t == state->modTime))
{
return false;
}
Expand Down Expand Up @@ -364,7 +362,7 @@ jUserOwnsDevice
)
{
uid_t uid;
return ((JGetOwnerID(name, &uid)).OK() && uid == getuid());
return (JGetOwnerID(name, &uid) && uid == getuid());
}

bool
Expand All @@ -376,8 +374,7 @@ JGetUserMountPointList
{
time_t t;
if (state != nullptr &&
(!JGetModificationTime(kAvailInfoName, &t).OK() ||
t == state->modTime))
(!JGetModificationTime(kAvailInfoName, &t) || t == state->modTime))
{
return false;
}
Expand Down

0 comments on commit 3831aa1

Please sign in to comment.