File: fix-du-call-with-non-english-locales.patch

package info (click to toggle)
automysqlbackup 2.6%2Bdebian.4-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 228 kB
  • sloc: sh: 1,373; makefile: 46
file content (17 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fixed du call with non-english locals
Author: Francesco Namuri <franam@debian.org>
Bug-Debian: https://bugs.debian.org/783758
Forwarded: no
Last-Update: 2020-07-27

--- automysqlbackup-2.6+debian.4.orig/automysqlbackup
+++ automysqlbackup-2.6+debian.4/automysqlbackup
@@ -693,7 +693,7 @@ then
 		ERRORNOTE="WARNING: Error Reported - "
 	fi
 	#Get backup size
-	ATTSIZE=`du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//`
+	ATTSIZE=`LANG=C du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//`
 	if [ $MAXATTSIZE -ge $ATTSIZE ]
 	then
 		BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"`	#enable multiple attachments