]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
lirc hotfix, createdb dir added to 00-dirtree
authorhackbard <hackbard>
Tue, 3 Jan 2006 02:39:37 +0000 (02:39 +0000)
committerhackbard <hackbard>
Tue, 3 Jan 2006 02:39:37 +0000 (02:39 +0000)
doc/CHANGELOG
packages/base/00-dirtree/00-dirtree
packages/hackbard/lirc/kernel2.6.14.patch [new file with mode: 0644]
packages/hackbard/lirc/lirc

index 72df4f278499b4e1810f15da8a91782641cdeeee..fb33cb58e060789a254c7063a836dbd49b1e4a75 100644 (file)
@@ -1,5 +1,7 @@
 *) 2006-01-03
 
+- added /var/lib/create for createdb to work to 00-dirtree
+- lirc bugfixes (temporally)
 - updated linux kernel
 - added packages: devmapper, dmraid, mdadm, popt, cryptsetup, hashalot
 
index b651afce065cb88860c759ad54a34cff1679d45d..0220d670935affcdf57ff746856564ddb110d7b2 100644 (file)
@@ -161,6 +161,8 @@ mkdir -p $root/var/cache
 mkdir -p $root/var/games
 # Create directory var/lib ...
 mkdir -p $root/var/lib
+# Create directory var/lib/locate ...
+mkdir -p $root/var/lib/locate
 # Create directory var/lock ...
 mkdir -p $root/var/lock
 # Create directory var/log ...
diff --git a/packages/hackbard/lirc/kernel2.6.14.patch b/packages/hackbard/lirc/kernel2.6.14.patch
new file mode 100644 (file)
index 0000000..4a11d7f
--- /dev/null
@@ -0,0 +1,86 @@
+--- lirc-0.7.2.orig/drivers/lirc_cmdir/lirc_cmdir.c    2005-07-10 10:34:13.000000000 +0200
++++ lirc-0.7.2/drivers/lirc_cmdir/lirc_cmdir.c 2005-09-20 16:32:35.000000000 +0200
+@@ -352,7 +352,7 @@
+       int cmdir_cnt =0;
+               
+       if(n%sizeof(lirc_t)) return(-EINVAL);
+-      retval=verify_area(VERIFY_READ,buf,n);
++      retval=access_ok(VERIFY_READ,buf,n) ? 0 : -EFAULT;
+       if(retval) return(retval);
+       
+       count=n/sizeof(lirc_t);
+--- lirc-0.7.2.orig/drivers/lirc_it87/lirc_it87.c      2005-06-05 17:43:28.000000000 +0200
++++ lirc-0.7.2/drivers/lirc_it87/lirc_it87.c   2005-09-20 16:35:00.000000000 +0200
+@@ -223,8 +223,8 @@
+                       break;
+               }
+               
+-              retval=verify_area(VERIFY_WRITE,(void *) buf+n,
+-                                 sizeof(lirc_t));
++              retval=access_ok(VERIFY_WRITE,(void *) buf+n,
++                                 sizeof(lirc_t)) ? 0 : -EFAULT;
+               if (retval)
+               {
+                       return retval;
+@@ -252,7 +252,7 @@
+         if(n%sizeof(lirc_t) || (n/sizeof(lirc_t)) > WBUF_LEN)
+               return(-EINVAL);
+-      retval = verify_area(VERIFY_READ, buf, n);
++      retval = access_ok(VERIFY_READ, buf, n) ? 0 : -EFAULT;
+       if (retval)
+               return retval;
+       copy_from_user(tx_buf, buf, n);
+--- lirc-0.7.2.orig/drivers/lirc_parallel/lirc_parallel.c      2005-04-23 13:40:01.000000000 +0200
++++ lirc-0.7.2/drivers/lirc_parallel/lirc_parallel.c   2005-09-20 16:36:12.000000000 +0200
+@@ -400,7 +400,7 @@
+       
+       if(n%sizeof(lirc_t)) return(-EINVAL);
+       
+-      result=verify_area(VERIFY_WRITE,buf,n);
++      result=access_ok(VERIFY_WRITE,buf,n) ? 0 : -EFAULT;
+       if(result) return(result);
+       
+       add_wait_queue(&lirc_wait,&wait);
+@@ -449,7 +449,7 @@
+               return(-EBUSY);
+       }
+       if(n%sizeof(lirc_t)) return(-EINVAL);
+-      result=verify_area(VERIFY_READ,buf,n);
++      result=access_ok(VERIFY_READ,buf,n) ? 0 : -EFAULT
+       if(result) return(result);
+       
+       count=n/sizeof(lirc_t);
+--- lirc-0.7.2.orig/drivers/lirc_serial/lirc_serial.c  2005-04-23 13:40:01.000000000 +0200
++++ lirc-0.7.2/drivers/lirc_serial/lirc_serial.c       2005-09-20 16:36:41.000000000 +0200
+@@ -923,7 +923,7 @@
+       }
+       
+       if(n%sizeof(lirc_t)) return(-EINVAL);
+-      retval=verify_area(VERIFY_READ,buf,n);
++      retval=access_ok(VERIFY_READ,buf,n) ? 0 : -EFAULT;
+       if(retval) return(retval);
+       count=n/sizeof(lirc_t);
+       if(count>WBUF_LEN || count%2==0) return(-EINVAL);
+--- lirc-0.7.2.orig/drivers/lirc_sir/lirc_sir.c        2005-04-23 13:40:01.000000000 +0200
++++ lirc-0.7.2/drivers/lirc_sir/lirc_sir.c     2005-09-20 16:37:21.000000000 +0200
+@@ -314,8 +314,8 @@
+       {
+               if(rx_head!=rx_tail)
+               {
+-                      retval=verify_area(VERIFY_WRITE,
+-                                         (void *) buf+n,sizeof(lirc_t));
++                      retval=access_ok(VERIFY_WRITE,
++                                         (void *) buf+n,sizeof(lirc_t)) ? 0 : -EFAULT;
+                       if (retval)
+                       {
+                               return retval;
+@@ -356,7 +356,7 @@
+         if(n%sizeof(lirc_t) || (n/sizeof(lirc_t)) > WBUF_LEN)
+               return(-EINVAL);
+-      retval = verify_area(VERIFY_READ, buf, n);
++      retval = access_ok(VERIFY_READ, buf, n) ? 0 : -EFAULT;
+       if (retval)
+               return retval;
+       copy_from_user(tx_buf, buf, n);
index 7cc147aa215ffc3455f15842737205120b5b52a4..d9b7aad56989788df9de555eb3777a24ea864a1d 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 0.7.1
+# [V] 0.7.2
 # [S] 3-4
-# [D] lirc-0.7.1.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/lirc/
+# [D] lirc-0.7.2.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/lirc/
 
 # specify driver, port, irq
 driver="serial"