chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: if we encounter a corrupted file, rotate and go on
[elogind.git]
/
src
/
quotacheck.c
diff --git
a/src/quotacheck.c
b/src/quotacheck.c
index c475cecc91fb8bccab0962fc526e1276986d17ff..b6648b836960b800e4065845640c487e44bb5aea 100644
(file)
--- a/
src/quotacheck.c
+++ b/
src/quotacheck.c
@@
-26,6
+26,7
@@
#include <unistd.h>
#include "util.h"
#include <unistd.h>
#include "util.h"
+#include "virt.h"
static bool arg_skip = false;
static bool arg_force = false;
static bool arg_skip = false;
static bool arg_force = false;
@@
-53,7
+54,7
@@
static int parse_proc_cmdline(void) {
arg_skip = true;
else if (startswith(w, "quotacheck.mode"))
log_warning("Invalid quotacheck.mode= parameter. Ignoring.");
arg_skip = true;
else if (startswith(w, "quotacheck.mode"))
log_warning("Invalid quotacheck.mode= parameter. Ignoring.");
-#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA)
+#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA)
|| defined(TARGET_MAGEIA)
else if (strneq(w, "forcequotacheck", l))
arg_force = true;
#endif
else if (strneq(w, "forcequotacheck", l))
arg_force = true;
#endif
@@
-64,8
+65,8
@@
static int parse_proc_cmdline(void) {
}
static void test_files(void) {
}
static void test_files(void) {
-#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA)
- /* This exists only on Fedora
or Mandriv
a */
+#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA)
|| defined(TARGET_MAGEIA)
+ /* This exists only on Fedora
, Mandriva or Magei
a */
if (access("/forcequotacheck", F_OK) >= 0)
arg_force = true;
#endif
if (access("/forcequotacheck", F_OK) >= 0)
arg_force = true;
#endif
@@
-86,7
+87,7
@@
int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
- log_set_target(LOG_TARGET_
SYSLOG_OR_KMSG
);
+ log_set_target(LOG_TARGET_
AUTO
);
log_parse_environment();
log_open();
log_parse_environment();
log_open();