Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f9831b4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add a comment to explain how errno is set" am: b488db91 am: ee7752ef

parents 9097c5ea ee7752ef
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -215,6 +215,9 @@ bool SetAttributeAction::ExecuteForTask(int tid) const {
                return false;
                return false;
            }
            }
        }
        }
        // The PLOG() statement below uses the error code stored in `errno` by
        // WriteStringToFile() because access() only overwrites `errno` if it fails
        // and because this code is only reached if the access() function returns 0.
        PLOG(ERROR) << "Failed to write '" << value_ << "' to " << path;
        PLOG(ERROR) << "Failed to write '" << value_ << "' to " << path;
        return false;
        return false;
    }
    }