X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournal-file.c;h=48c27ee627a503f169697e2bb4f967eeb6e9de62;hb=f131770b1465fbf423881f16ba85523a05f846fe;hp=fec54f31b9888730d6efb933f1a5532f92e93cc8;hpb=f534928ad7aaeec0bec2d653b4a50e79b0fc8418;p=elogind.git diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index fec54f31b..48c27ee62 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -26,7 +26,6 @@ #include #include #include -#include #include "journal-def.h" #include "journal-file.h" @@ -2526,8 +2525,6 @@ int journal_file_open( } if (f->last_stat.st_size == 0 && f->writable) { - uint64_t crtime; - /* Let's attach the creation time to the journal file, * so that the vacuuming code knows the age of this * file even if the file might end up corrupted one @@ -2538,8 +2535,7 @@ int journal_file_open( * attributes are not supported we'll just skip this, * and rely solely on mtime/atime/ctime of the file. */ - crtime = htole64((uint64_t) now(CLOCK_REALTIME)); - fsetxattr(f->fd, "user.crtime_usec", &crtime, sizeof(crtime), XATTR_CREATE); + fd_setcrtime(f->fd, now(CLOCK_REALTIME)); #ifdef HAVE_GCRYPT /* Try to load the FSPRG state, and if we can't, then