Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 27f786d

Browse files
committed
Improve error messages that are printed when the user's home directory cannot be determine
Signed-off-by: Mattias Andrée <maandree@operamail.com>
1 parent f0d9e31 commit 27f786d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/config-ini.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ open_config_file(const char *filepath)
9292
"%s/.config/redshift.conf", home);
9393
f = fopen(cp, "r");
9494
} else {
95-
fprintf(stderr, _("It appear as if you are homeless."));
95+
fprintf(stderr, _("Cannot determine your home directory, "
96+
"it is from the system's user table.\n"));
9697
}
9798
} else if (errno) {
9899
perror("getpwuid");
99100
} else {
100-
fprintf(stderr, _("It appear as if you do not exist."));
101+
fprintf(stderr, _("Cannot determine your home directory, "
102+
"your user ID is missing from the system's user table.\n"));
101103
/* errno can either be set to any number of error codes,
102104
or be zero if the user does not have a passwd entry. */
103105
}

0 commit comments

Comments
 (0)