X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.c;h=74f29949c97619ce429b49e5b6f8d49f43fb297a;hb=0aa3b7830fd59d8b4ca275e9a9c4e79f8a23ff6d;hp=dc6528013bb0a7fded44e17a9e84e3eb5473b9f8;hpb=1c8da044469acabcfc479ba3276954da53210830;p=elogind.git
diff --git a/src/shared/util.c b/src/shared/util.c
index dc6528013..74f29949c 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -19,7 +19,6 @@
along with systemd; If not, see .
***/
-#include
#include
#include
#include
@@ -48,7 +47,6 @@
#include
#include
#include
-#include
#include
#include
#include
@@ -83,7 +81,6 @@
#include "missing.h"
#include "log.h"
#include "strv.h"
-#include "label.h"
#include "mkdir.h"
#include "path-util.h"
#include "exit-status.h"
@@ -1692,6 +1689,7 @@ bool chars_intersect(const char *a, const char *b) {
bool fstype_is_network(const char *fstype) {
static const char table[] =
+ "afs\0"
"cifs\0"
"smbfs\0"
"sshfs\0"
@@ -6001,7 +5999,7 @@ int on_ac_power(void) {
d = opendir("/sys/class/power_supply");
if (!d)
- return -errno;
+ return errno == ENOENT ? true : -errno;
for (;;) {
struct dirent *de;