~ubuntu-branches/ubuntu/precise/openjdk-7/precise-security

« back to all changes in this revision

Viewing changes to debian/patches/libpcsclite-dlopen.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-04-11 07:21:41 UTC
  • mfrom: (1.3.8) (8.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20120411072141-v8i0x0ejg8sf7i5p
Tags: 7~u3-2.1.1~pre1-1ubuntu1
Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- openjdk/jdk/src/solaris/classes/sun/security/smartcardio/PlatformPCSC.java~ 2011-11-14 23:12:15.000000000 +0100
 
2
+++ openjdk/jdk/src/solaris/classes/sun/security/smartcardio/PlatformPCSC.java  2012-04-10 12:26:44.633272023 +0200
 
3
@@ -48,6 +48,7 @@
 
4
 
 
5
     private final static String PROP_NAME = "sun.security.smartcardio.library";
 
6
 
 
7
+    private final static String LIB0 = "libpcsclite.so.1";
 
8
     private final static String LIB1 = "/usr/$LIBISA/libpcsclite.so";
 
9
     private final static String LIB2 = "/usr/local/$LIBISA/libpcsclite.so";
 
10
 
 
11
@@ -103,17 +104,9 @@
 
12
         if (lib.length() != 0) {
 
13
             return lib;
 
14
         }
 
15
-        lib = expand(LIB1);
 
16
-        if (new File(lib).isFile()) {
 
17
-            // if LIB1 exists, use that
 
18
-            return lib;
 
19
-        }
 
20
-        lib = expand(LIB2);
 
21
-        if (new File(lib).isFile()) {
 
22
-            // if LIB2 exists, use that
 
23
-            return lib;
 
24
-        }
 
25
-        throw new IOException("No PC/SC library found on this system");
 
26
+       // let dlopen do the work
 
27
+       lib = LIB0;
 
28
+       return lib;
 
29
     }
 
30
 
 
31
     private static native void initialize(String libraryName);