Hi All,

The attached patch fix amsamba in 3.4.1 to works with newer version of samba.

In 3.3.9 you also need the patch from
https://github.com/zmanda/amanda/commit/585b2139153f8d4a93ccc796983eedfa5a38e6ce

Jean-Louis

On 06/01/17 09:08 AM, Jean-Louis Martineau wrote:
On 06/01/17 07:18 AM, Mike Höhn wrote:
> Am Freitag, 6. Januar 2017, 11:40:44 schrieb Stefan G. Weichinger:
>> Anyone using smbclient for backups with late amanda?
>> If yes, which version of samba?
> Stefan,
>
> I've had the same problems with samba 4.4.5 and amanda 3.3.9 on Slackware.
> I had found this:
>
> http://www.backupcentral.com/forum/16/267955
>
> It's not amanda related, but describes the problem smbclient has with a non-
> UTF locale.
>
> IIRC I tried to set LANG like described before starting amdump. Unfortunately
> it didn't work for me. But perhaps this is where to look for a solution.
>
> Mike
>
If setting an environment variable is required, try setting it in the
amsamba script before all exec call

$ENV{'LANG'} = 'en_US.UTF-8'

Jean-Louis


*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 Click Here <http://www.mimecast.com/products/>.


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.
diff --git a/application-src/amsamba.pl b/application-src/amsamba.pl
index 147deb8..5012100 100644
--- a/application-src/amsamba.pl
+++ b/application-src/amsamba.pl
@@ -441,6 +441,7 @@ sub command_selfcheck {
 	push @ARGV, "-c", "quit";
 	debug("execute: " . $self->{smbclient} . " " .
 	      join(" ", @ARGV));
+	$ENV{'LC_CTYPE'} = 'en_US.UTF-8';
 	exec {$self->{smbclient}} @ARGV;
     }
     #parent
@@ -520,6 +521,7 @@ sub command_estimate {
 	}
 	debug("execute: " . $self->{smbclient} . " " .
 	      join(" ", @ARGV));
+	$ENV{'LC_CTYPE'} = 'en_US.UTF-8';
 	exec {$self->{smbclient}} @ARGV;
     }
     #parent
@@ -663,6 +665,7 @@ sub command_backup {
 	push @ARGV, "-c", $comm;
 	debug("execute: " . $self->{smbclient} . " " .
 	      join(" ", @ARGV));
+	$ENV{'LC_CTYPE'} = 'en_US.UTF-8';
 	exec {$self->{smbclient}} @ARGV;
     }
 

Reply via email to