File: fix-exdev-error.patch

package info (click to toggle)
normalize-audio 0.7.7-11
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,844 kB
  • sloc: sh: 9,255; ansic: 8,288; perl: 635; makefile: 137; sed: 16
file content (21 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Author: Joachim Reichel <reichel@debian.org>
Description: use move instead of rename to avoid EXDEV, see #336808 and #337396
--- a/src/normalize-mp3.in
+++ b/src/normalize-mp3.in
@@ -47,6 +47,7 @@
 #######################################################################
 
 use Fcntl;
+use File::Copy;
 
 sub usage {
     print <<EOF
@@ -214,7 +215,7 @@
 	    close(IN);
 	    close(OUT);
 	    unlink $fname;
-	    rename($tmpfile, $fname)
+	    move($tmpfile, $fname)
 		|| die "Can't rename temp file, leaving in $tmpfile, stopped";
 	}
     }