From owner-freebsd-questions Thu Jan 12 13:18:00 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id NAA06454 for questions-outgoing; Thu, 12 Jan 1995 13:18:00 -0800 Received: from hermes.cybernetics.net (hermes.cybernetics.net [198.80.51.103]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id NAA06446 for ; Thu, 12 Jan 1995 13:17:53 -0800 Received: (from james@localhost) by hermes.cybernetics.net (8.6.8/8.6.6) id QAA04484 for questions@freebsd.org; Thu, 12 Jan 1995 16:28:25 -0500 From: James Robinson Message-Id: <199501122128.QAA04484@hermes.cybernetics.net> Subject: More on MFS, sym link and lpd To: questions@FreeBSD.org (FreeBSD questions) Date: Thu, 12 Jan 1995 16:28:25 -0500 (EST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 864 Sender: questions-owner@FreeBSD.org Precedence: bulk Here is the line that fails within lpd with you try to print a file stored on a MFS using a sym link (i.e. lpr -s ): (Oh yeah -- 1.1.5.1+) /usr/src/usr.sbin/lpr/lpd/printjob.c, line 764+: * Check to see if data file is a symbolic link. If so, it should * still point to the same file or someone is trying to print something * he shouldn't. */ if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(f, &stb) == 0 && (stb.st_dev != fdev || stb.st_ino != fino)) return(ACCESS); I now return you to your regularly scheduled program! : James Robinson : james@hermes.cybernetics.net ::See the screaming hot black :FreeBSD|XFree86 :The best things in life are Free:: steaming iridescent : Frank Zappa : Music is the best ::naughahyde python screaming : HTTP Server : http://hermes.cybernetics.net/ :: steam roller!