diff --git a/servers/vfs/device.c b/servers/vfs/device.c index 0d7d5da96..7461abc00 100644 --- a/servers/vfs/device.c +++ b/servers/vfs/device.c @@ -623,7 +623,8 @@ int ctty_opcl( * /dev/tty, the magic device that translates to the controlling tty. */ - assert(!IS_BDEV_RQ(op)); + if (IS_BDEV_RQ(op)) + panic("ctty_opcl() called for block device request?"); return(fp->fp_tty == 0 ? ENXIO : OK); }