Whamcloud - gitweb
Read mke2fs.conf and e2fsck.conf from root_sysconfdir rather than harcoded /etc.
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 10 Jun 2006 14:08:18 +0000 (16:08 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 10 Jun 2006 14:08:18 +0000 (16:08 +0200)
MCONFIG.in
e2fsck/unix.c
misc/mke2fs.c

index 4afb80a..e8b0155 100644 (file)
@@ -33,7 +33,7 @@ datadir = @datadir@
 
 CC = @CC@
 BUILD_CC = @BUILD_CC@
-DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
+DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@
 CFLAGS = @CFLAGS@
 CPPFLAGS =  -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
 INTL_FLAGS = @INTL_FLAGS@
index 9e722f4..77f56f6 100644 (file)
@@ -568,7 +568,7 @@ static void syntax_err_report(const char *filename, long err, int line_num)
        exit(FSCK_ERROR);
 }
 
-static const char *config_fn[] = { "/etc/e2fsck.conf", 0 };
+static const char *config_fn[] = { ROOT_SYSCONFDIR "/e2fsck.conf", 0 };
 
 static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
 {
index 5c59b48..0004c01 100644 (file)
@@ -870,7 +870,7 @@ static void syntax_err_report(const char *filename, long err, int line_num)
        exit(1);
 }
 
-static const char *config_fn[] = { "/etc/mke2fs.conf", 0 };
+static const char *config_fn[] = { ROOT_SYSCONFDIR "/mke2fs.conf", 0 };
 
 static void edit_feature(const char *str, __u32 *compat_array) 
 {