Re: Portability: hardcoding path to amanda-security.conf: common-src/security-file.c

Jean-Louis Martineau <[email protected]>
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
Eric,

Thanks for the patch, I committed it.

Jean-Louis

On 02/01/17 06:10 PM, Eric Schnoebelen wrote:
> 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);
>   	    }
>   	}
>       }
>

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.