~gma500/+junk/gma500-natty

« back to all changes in this revision

Viewing changes to psb-kernel-source/debian/patches/07_current_euid.dpatch

  • Committer: Luca Forina
  • Date: 2011-02-14 10:01:54 UTC
  • Revision ID: luca.forina@gmail.com-20110214100154-ai9gynuqb1dna2ea
new commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 07_current_euid.dpatch by  <jbs@jbs-laptop>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: fix euid
 
6
 
 
7
@DPATCH@
 
8
 
 
9
diff -p -up build/drm_fops.c.current_euid build/drm_fops.c
 
10
--- build/drm_fops.c.current_euid       2009-05-31 03:22:18.000000000 -0400
 
11
+++ build/drm_fops.c    2009-05-31 03:32:00.000000000 -0400
 
12
@@ -252,7 +252,7 @@ static int drm_open_helper(struct inode 
 
13
        memset(priv, 0, sizeof(*priv));
 
14
        filp->private_data = priv;
 
15
        priv->filp = filp;
 
16
-       priv->uid = current->euid;
 
17
+       priv->uid = current_euid();
 
18
        priv->pid = current->pid;
 
19
        priv->minor = minor;
 
20
        priv->head = drm_heads[minor];