Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 1995 16:28:25 -0500 (EST)
From:      James Robinson <james@hermes.cybernetics.net>
To:        questions@FreeBSD.org (FreeBSD questions)
Subject:   More on MFS, sym link and lpd
Message-ID:  <199501122128.QAA04484@hermes.cybernetics.net>

next in thread | raw e-mail | index | archive | help
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 <filename>):

(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!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501122128.QAA04484>