File: possible-precedence-issue-with-control-flow-operator.patch

package info (click to toggle)
arename 4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 704 kB
  • ctags: 30
  • sloc: sh: 619; perl: 570; makefile: 152
file content (17 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix Perl warning "Possible precedence issue with control flow operator"
 It causes as-installed testing to fail.
Author: Axel Beckert <abe@debian.org>

Index: arename/ARename.pm.in
===================================================================
--- arename.orig/ARename.pm.in	2015-05-23 18:24:17.799474077 +0200
+++ arename/ARename.pm.in	2015-05-23 20:00:13.262742652 +0200
@@ -2941,7 +2941,7 @@
 sub xcopy {
     my ($src, $dest) = @_;
 
-    return copy($src, $dest) or croak("Could not copy($src, $dest): $ERRNO\n");
+    return copy($src, $dest) || croak("Could not copy($src, $dest): $ERRNO\n");
 }
 
 # {get,set}_opt() API