Portability: hardcoding path to amanda-security.conf: common-src/security-file.c
[email protected] (Eric Schnoebelen)
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
Issue: path to amanda-security.conf is hardcoded as /etc.
Autoconf provides functionality for relocating configuration
files.
Solution: Make use of autoconf defined feature macro in
common-src/security-file.c
$NetBSD$
--- common-src/security-file.c.orig 2016-02-09 22:52:51.000000000 +0000
+++ common-src/security-file.c
@@ -161,7 +161,7 @@ security_file_get_boolean(
fclose(sec_file);
return FALSE;
}
- error("BOGUS line '%s' in /etc/amanda-security.conf file", oline);
+ error("BOGUS line '%s' in " DEFAULT_SECURITY_FILE " file", oline);
}
}
}
common-src_security-file.c.patch
(text/plain, 370 B)
$NetBSD$
--- common-src/security-file.c.orig 2016-02-09 22:52:51.000000000 +0000
+++ common-src/security-file.c
@@ -161,7 +161,7 @@ security_file_get_boolean(
fclose(sec_file);
return FALSE;
}
- error("BOGUS line '%s' in /etc/amanda-security.conf file", oline);
+ error("BOGUS line '%s' in " DEFAULT_SECURITY_FILE " file", oline);
}
}
}