Update of /cvsroot/linuxconsole/ruby/ruby-2.6/fs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14912/ruby-2.6/fs
Modified Files:
compat_ioctl.c
Log Message:
sync to 2.6.6
Index: compat_ioctl.c
===================================================================
RCS file: /cvsroot/linuxconsole/ruby/ruby-2.6/fs/compat_ioctl.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- compat_ioctl.c 23 Apr 2004 07:36:56 -0000 1.8
+++ compat_ioctl.c 25 May 2004 05:26:48 -0000 1.9
@@ -70,8 +70,10 @@
#include <net/sock.h> /* siocdevprivate_ioctl */
#include <net/bluetooth/bluetooth.h>
-#include <net/bluetooth/rfcomm.h>
#include <net/bluetooth/hci.h>
+#include <net/bluetooth/rfcomm.h>
+
+#include <linux/capi.h>
#include <scsi/scsi.h>
/* Ugly hack. */
@@ -1604,7 +1606,7 @@
* 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 (current->signal->tty == tty || capable(CAP_SYS_ADMIN))
return 1;
return 0;
}
|