summaryrefslogtreecommitdiffstats
path: root/src/resolve
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-06 14:13:30 +0200
committerGitHub <noreply@github.com>2018-08-06 14:13:30 +0200
commit7735d9397b4ede86aebbada9ab01b241527fe525 (patch)
treea3ea332790f729a3face9341882aae922329f5dd /src/resolve
parentresolve: treat some icmp errors as disconnected (diff)
parentman: include libsystemd-pkgconfig.xml in a few more man pages (diff)
downloadsystemd-7735d9397b4ede86aebbada9ab01b241527fe525.tar.xz
systemd-7735d9397b4ede86aebbada9ab01b241527fe525.zip
Merge pull request #9792 from poettering/hashmap-mempool
minor hashmap fixes
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/test-resolved-etc-hosts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/test-resolved-etc-hosts.c b/src/resolve/test-resolved-etc-hosts.c
index 5b8f1e220e..b7dba0d780 100644
--- a/src/resolve/test-resolved-etc-hosts.c
+++ b/src/resolve/test-resolved-etc-hosts.c
@@ -9,7 +9,7 @@
static void test_parse_etc_hosts_system(void) {
_cleanup_fclose_ FILE *f = NULL;
- f = fopen("/etc/hosts", "r");
+ f = fopen("/etc/hosts", "re");
if (!f) {
assert_se(errno == -ENOENT);
return;
@@ -27,7 +27,7 @@ static void test_parse_etc_hosts(const char *fname) {
_cleanup_fclose_ FILE *f;
if (fname) {
- f = fopen(fname, "r");
+ f = fopen(fname, "re");
assert_se(f);
} else {
fd = mkostemp_safe(t);