aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/users.cc
diff options
context:
space:
mode:
authorRebecca Turner <rbt@sent.as>2024-08-23 15:15:21 -0700
committerRebecca Turner <rbt@sent.as>2024-08-23 15:15:21 -0700
commitfabc9f29b82df97ab3b378dafb8249354f54d1df (patch)
treeb0f25317daac2d6775d47ea71446cd8810087cd2 /src/libutil/users.cc
parentc5949bfe313a92aab0e4cf38ab2407b0ac922ce8 (diff)
Fix comment in `getHome`
The logic in the comment is the opposite of the truth. Change-Id: I64add84539209782ffa46431f3db1fb306d90b3f
Diffstat (limited to 'src/libutil/users.cc')
-rw-r--r--src/libutil/users.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/users.cc b/src/libutil/users.cc
index a9a8a7353..ce36bad9b 100644
--- a/src/libutil/users.cc
+++ b/src/libutil/users.cc
@@ -36,7 +36,7 @@ Path getHome()
std::optional<std::string> unownedUserHomeDir = {};
auto homeDir = getEnv("HOME");
if (homeDir) {
- // Only use $HOME if doesn't exist or is owned by the current user.
+ // Only use `$HOME` if it exists and is owned by the current user.
struct stat st;
int result = stat(homeDir->c_str(), &st);
if (result != 0) {