chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: require syslog.socket from the logger because we simply fail if we don't have it
[elogind.git]
/
src
/
sd-readahead.c
diff --git
a/src/sd-readahead.c
b/src/sd-readahead.c
index 41e6d3d20e948d57c1991d8b9743a92fa112a3b2..c5cfe6710732c900a459510fd937aefca26ec44e 100644
(file)
--- a/
src/sd-readahead.c
+++ b/
src/sd-readahead.c
@@
-42,8
+42,8
@@
static int touch(const char *path) {
#if !defined(DISABLE_SYSTEMD) && defined(__linux__)
int fd;
#if !defined(DISABLE_SYSTEMD) && defined(__linux__)
int fd;
- mkdir("/
dev/.
systemd", 0755);
- mkdir("/
dev/.
systemd/readahead", 0755);
+ mkdir("/
run/
systemd", 0755);
+ mkdir("/
run/
systemd/readahead", 0755);
if ((fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666)) < 0)
return -errno;
if ((fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666)) < 0)
return -errno;
@@
-66,11
+66,11
@@
int sd_readahead(const char *action) {
return -EINVAL;
if (strcmp(action, "cancel") == 0)
return -EINVAL;
if (strcmp(action, "cancel") == 0)
- return touch("/
dev/.
systemd/readahead/cancel");
+ return touch("/
run/
systemd/readahead/cancel");
else if (strcmp(action, "done") == 0)
else if (strcmp(action, "done") == 0)
- return touch("/
dev/.
systemd/readahead/done");
+ return touch("/
run/
systemd/readahead/done");
else if (strcmp(action, "noreplay") == 0)
else if (strcmp(action, "noreplay") == 0)
- return touch("/
dev/.
systemd/readahead/noreplay");
+ return touch("/
run/
systemd/readahead/noreplay");
return -EINVAL;
}
return -EINVAL;
}