1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 07_current_euid.dpatch by <jbs@jbs-laptop>
4
## All lines beginning with `## DP:' are a description of the patch.
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;
16
- priv->uid = current->euid;
17
+ priv->uid = current_euid();
18
priv->pid = current->pid;
20
priv->head = drm_heads[minor];