diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-10-04 21:04:20 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-10-04 21:04:20 -0700 |
| commit | 3479607fae84bd00f1f6fbdf34d10b2106e39b0f (patch) | |
| tree | e04ab92cc3694d63ba2f31445cf364f74757deca | |
| parent | 1bd563fd41bf28b72605b4c4b9254d31f20a3814 (diff) | |
[PATCH] fix "compat ioctl consolidation" for "move job
A little fix which is needed if both the "compat ioctl consolidation" and
"move job control fields from task_struct to signal_struct" patches are
applied.
| -rw-r--r-- | fs/compat_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 88f750e4f16f..16c7de3c9d1b 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -1574,7 +1574,7 @@ static int vt_check(struct file *file) * To have permissions to do most of the vt ioctls, we either have * to be the owner of the tty, or super-user. */ - if (current->tty == tty || capable(CAP_SYS_ADMIN)) + if (process_tty(current) == tty || capable(CAP_SYS_ADMIN)) return 1; return 0; } |
