diff options
author | Andrey Borzenkov <arvidjaar@gmail.com> | 2011-03-08 19:47:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-08 19:47:36 +0100 |
commit | 1de4d79bf554946f486adf56ed765c5335816f15 (patch) | |
tree | 1a9959d84694b23fde107f59e74b3fab98be9e50 /src/quotacheck.c | |
parent | 6e25b33cddf77c90d351dee6442c51bd19e2b7a8 (diff) |
build-sys: add Mandriva distribution supportsystemd/v20
This merges several separate patches that I carry as part of
Mandriva systemd RPM. They touch those parts that are very
unlikely to be changed in near future and do not impose any
functionality change for systemd core. I also think it is
useful for troubleshooting to have real distribution name in
system logs, espicially when someone reports problem upstream.
The patch looks bigger than sum of replaced patches because
- previous patches were applied on top of distro=fedora, now
I need to add all those bits for distro=mandriva as well
- part of patch was done as spec file magic, but it seems more
logical to ship all these bits together
Diffstat (limited to 'src/quotacheck.c')
-rw-r--r-- | src/quotacheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quotacheck.c b/src/quotacheck.c index 5d61146d93..5ced93318e 100644 --- a/src/quotacheck.c +++ b/src/quotacheck.c @@ -50,7 +50,7 @@ static int parse_proc_cmdline(void) { arg_skip = true; else if (startswith(w, "quotacheck.mode")) log_warning("Invalid quotacheck.mode= parameter. Ignoring."); -#ifdef TARGET_FEDORA +#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) else if (strneq(w, "forcequotacheck", l)) arg_force = true; #endif @@ -61,8 +61,8 @@ static int parse_proc_cmdline(void) { } static void test_files(void) { -#ifdef TARGET_FEDORA - /* This exists only on Fedora */ +#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) + /* This exists only on Fedora or Mandriva */ if (access("/forcequotacheck", F_OK) >= 0) arg_force = true; #endif |