Include license file.
[fedora-mingw.git] / libgcrypt / libgcrypt-1.4.4-fips-no-access.patch
1 Do not abort when the fips mode flag is simply inaccessible because of
2 insufficient permissions.
3 diff -up libgcrypt-1.4.4/src/fips.c.no-access libgcrypt-1.4.4/src/fips.c
4 --- libgcrypt-1.4.4/src/fips.c.no-access        2009-01-29 17:37:12.000000000 +0100
5 +++ libgcrypt-1.4.4/src/fips.c  2009-01-29 17:37:15.000000000 +0100
6 @@ -155,6 +155,7 @@ _gcry_initialize_fips_mode (int force)
7          fclose (fp);
8        }
9      else if ((saved_errno = errno) != ENOENT
10 +             && saved_errno != EACCES
11               && !access ("/proc/version", F_OK) )
12        {
13          /* Problem reading the fips file despite that we have the proc