X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftmpfiles.c;h=13e830db56b63ca3a9d593d174d3c46eab10f17e;hb=00dc5d769ac4a4019d6b6fe22e8383ec8b030a96;hp=7bd5510d5f78948fb33b8afe6a61fc652a4c9d76;hpb=4aa8b15b0c378eeb5773f74c27836be06da484f3;p=elogind.git diff --git a/src/tmpfiles.c b/src/tmpfiles.c index 7bd5510d5..13e830db5 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -34,7 +34,7 @@ #include "strv.h" #include "label.h" -/* This reads all files listed in /etc/tempfiles.d/?*.conf and creates +/* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates * them in the file system. This is intended to be used to create * properly owned directories beneath /tmp, /var/tmp, /var/run and * /var/lock which are volatile and hence need to be recreated on @@ -258,12 +258,12 @@ int main(int argc, char *argv[]) { label_init(); - if ((n = scandir("/etc/tempfiles.d/", &de, scandir_filter, alphasort)) < 0) { + if ((n = scandir("/etc/tmpfiles.d/", &de, scandir_filter, alphasort)) < 0) { if (errno == ENOENT) r = EXIT_SUCCESS; else - log_error("Failed to enumerate /etc/tempfiles.d/ files: %m"); + log_error("Failed to enumerate /etc/tmpfiles.d/ files: %m"); goto finish; } @@ -276,7 +276,7 @@ int main(int argc, char *argv[]) { FILE *f; unsigned j; - k = asprintf(&fn, "/etc/tempfiles.d/%s", de[i]->d_name); + k = asprintf(&fn, "/etc/tmpfiles.d/%s", de[i]->d_name); free(de[i]); if (k < 0) {