patch-2.4.10 linux/drivers/s390/char/tubfs.c
Next file: linux/drivers/s390/char/tubio.h
Previous file: linux/drivers/s390/char/tuball.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Fri Sep 7 09:28:38 2001
- Orig file:
v2.4.9/linux/drivers/s390/char/tubfs.c
- Orig date:
Sun Aug 12 13:28:00 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/s390/char/tubfs.c linux/drivers/s390/char/tubfs.c
@@ -42,11 +42,11 @@
{
char name[16];
- sprintf(name, "tub%x", tubp->devno);
+ sprintf(name, "tub%.3x", tubp->devno);
devfs_register(fs3270_devfs_dir, name, DEVFS_FL_DEFAULT,
IBM_FS3270_MAJOR, tubp->minor,
S_IFCHR | S_IRUSR | S_IWUSR, &fs3270_fops, NULL);
- sprintf(name, "tty%x", tubp->devno);
+ sprintf(name, "tty%.3x", tubp->devno);
tty_register_devfs_name(&tty3270_driver, 0, tubp->minor,
fs3270_devfs_dir, name);
}
@@ -56,12 +56,12 @@
char name[16];
devfs_handle_t handle;
- sprintf(name, "tub%x", tubp->devno);
+ sprintf(name, "tub%.3x", tubp->devno);
handle = devfs_find_handle (fs3270_devfs_dir, name,
IBM_FS3270_MAJOR, tubp->minor,
DEVFS_SPECIAL_CHR, 0);
devfs_unregister (handle);
- sprintf(name, "tty%x", tubp->devno);
+ sprintf(name, "tty%.3x", tubp->devno);
handle = devfs_find_handle (fs3270_devfs_dir, name,
IBM_TTY3270_MAJOR, tubp->minor,
DEVFS_SPECIAL_CHR, 0);
@@ -88,7 +88,7 @@
fs3270_devfs_tub =
devfs_register(fs3270_devfs_dir, "tub", DEVFS_FL_DEFAULT,
IBM_FS3270_MAJOR, 0,
- S_IFCHR | S_IRUSR | S_IWUSR,
+ S_IFCHR | S_IRUGO | S_IWUGO,
&fs3270_fops, NULL);
#else
rc = register_chrdev(IBM_FS3270_MAJOR, "fs3270", &fs3270_fops);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)