Add openssh
[kopensolaris-gnu/patches.git] / uw-imap-2007b.diff
1 diff -uraN uw-imap-2007b~dfsg.orig/debian/patches/2030_kopensolaris-gnu.patch uw-imap-2007b~dfsg/debian/patches/2030_kopensolaris-gnu.patch
2 --- uw-imap-2007b~dfsg.orig/debian/patches/2030_kopensolaris-gnu.patch  1969-12-31 19:00:00.000000000 -0500
3 +++ uw-imap-2007b~dfsg/debian/patches/2030_kopensolaris-gnu.patch       2008-09-28 05:43:29.048684196 -0400
4 @@ -0,0 +1,27 @@
5 +--- a/src/osdep/unix/flocklnx.c
6 ++++ b/src/osdep/unix/flocklnx.c
7 +@@ -45,12 +45,14 @@
8 +    * for the gruesome details.
9 +    */
10 +                               /* check filesystem type */
11 ++#if !defined(__OpenSolaris_kernel__)
12 +   while ((e = fstatfs (fd,&sfbuf)) && (errno == EINTR));
13 +   if (!e) switch (sfbuf.f_type) {
14 +   case NFS_SUPER_MAGIC:               /* always a fast no-op on NFS */
15 +     break;
16 +   default:                    /* allow on other filesystem types */
17 +                               /* do the lock */
18 ++#endif
19 +     while (flock (fd,op)) switch (errno) {
20 +     case EINTR:                       /* interrupt */
21 +       break;
22 +@@ -70,7 +72,9 @@
23 +       sprintf (tmp,"Unexpected file locking failure: %s",strerror (errno));
24 +       fatal (tmp);
25 +     }
26 ++#if !defined(__OpenSolaris_kernel__)
27 +     break;
28 +   }
29 ++#endif
30 +   return 0;                   /* success */
31 + }
32 diff -uraN uw-imap-2007b~dfsg.orig/debian/patches/series uw-imap-2007b~dfsg/debian/patches/series
33 --- uw-imap-2007b~dfsg.orig/debian/patches/series       2008-09-28 05:40:20.000000000 -0400
34 +++ uw-imap-2007b~dfsg/debian/patches/series    2008-09-28 05:43:08.463092160 -0400
35 @@ -3,3 +3,4 @@
36  2002_mailspool.patch
37  2004_no_binaries_below_etc.patch
38  2010_disallow_escaping_home.patch
39 +2030_kopensolaris-gnu.patch
40 diff -uraN uw-imap-2007b~dfsg.orig/.pc/.version uw-imap-2007b~dfsg/.pc/.version
41 --- uw-imap-2007b~dfsg.orig/.pc/.version        1969-12-31 19:00:00.000000000 -0500
42 +++ uw-imap-2007b~dfsg/.pc/.version     2008-09-28 05:42:50.440301588 -0400
43 @@ -0,0 +1 @@
44 +2