hostname: properly deal with unset hostname in fedora configuration
This commit is contained in:
parent
2cc59dbfe0
commit
84b00965b7
3
fixme
3
fixme
|
@ -38,6 +38,7 @@
|
||||||
* place /etc/inittab with explaining blurb.
|
* place /etc/inittab with explaining blurb.
|
||||||
|
|
||||||
* In command lines, support both "$FOO" and $FOO
|
* In command lines, support both "$FOO" and $FOO
|
||||||
|
|
||||||
* /etc must always take precedence even if we follow symlinks!
|
* /etc must always take precedence even if we follow symlinks!
|
||||||
|
|
||||||
* vielleicht implizit immer auf syslog dependen?
|
* vielleicht implizit immer auf syslog dependen?
|
||||||
|
@ -48,8 +49,6 @@
|
||||||
|
|
||||||
* set_put(), hashmap_put() return values checken. i.e. == 0 macht kein free()!
|
* set_put(), hashmap_put() return values checken. i.e. == 0 macht kein free()!
|
||||||
|
|
||||||
* crash on missing hostname
|
|
||||||
|
|
||||||
* fix merging in .swap units
|
* fix merging in .swap units
|
||||||
|
|
||||||
* pahole
|
* pahole
|
||||||
|
|
|
@ -101,10 +101,11 @@ static int read_hostname(char **hn) {
|
||||||
}
|
}
|
||||||
|
|
||||||
*hn = k;
|
*hn = k;
|
||||||
break;
|
r = 0;
|
||||||
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
r = 0;
|
r = -ENOENT;
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
Loading…
Reference in New Issue