From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6a90468a8fc908854eda6969e123d62a@snellwilcox.com> From: steve.simon@snellwilcox.com To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-vzhsdkozabkpnjmkoftpcvlszm" Subject: [9fans] lp bind strangeness Date: Mon, 31 Mar 2003 15:22:30 +0100 Topicbox-Message-UUID: 87e3d450-eacb-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-vzhsdkozabkpnjmkoftpcvlszm Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi, I cannot work out what is going on. I have been using lp to print via a remote BSD printer for months. I have added a /lib/namespace (attached) but I cannot see how this harms anything. NB. my /usr/local/sys/lib/lp/spooler only contains the binaries for forsyth's smb print client. Now when I try to print I get: lpdspool: '/bin/rc' directory entry not found On closer inspection the following code from /rc/bin/lp is being run: if (~ $RESET '') { switch ($SPOOLER) { case -; echo spooler does not exist for $LPDEST >[1=2] exit 'no spooler' case *; bind -b $LPLIB/spooler /bin if (~ $#* 0) $SPOOLER if not $SPOOLER $* } } it seems that the bind is causing /386/bin/rc to disapear from /bin. I cannot see how this can be possible. If I change the bind -b to a bind -a then it works as expected. It cannot be any of my mounts as lp rebuilds /bin's mounts itself and I have nothing mounted over /386/bin or /rc/bin for that matter. I thought I understood union directories - obviously not :-( -Steve --upas-vzhsdkozabkpnjmkoftpcvlszm Content-Type: multipart/mixed; boundary="upas-yybogbbefpanlspadkqshineri" Content-Disposition: inline This is a multi-part message in MIME format. --upas-yybogbbefpanlspadkqshineri Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The following attachment had content that we can't prove to be harmless. To avoid possible automatic execution, we changed the content headers. The original header was: Content-Disposition: attachment; filename=namespace.local Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit --upas-yybogbbefpanlspadkqshineri Content-Type: application/octet-stream Content-Disposition: attachment; filename="namespace.local.suspect" bind -b /usr/local/386/bin /bin bind -a /386/bin/ip /bin/ip bind -a /386/bin/upas /bin/upas bind -b /usr/local/rc/bin /bin bind -a /rc/bin/service /bin/service bind -b /usr/local/acme/bin/386 /acme/bin/386 bind -a /usr/local/386/lib /386/lib bind -a /usr/local/386/include /386/include bind -a /usr/local/sys/include /sys/include bind -a /usr/local/sys/doc /sys/doc bind -a /usr/local/sys/man/1 /sys/man/1 bind -a /usr/local/sys/lib/lp/spooler /sys/lib/lp/spooler bind -a /usr/local/lib/font/bit/pelm /lib/font/bit/pelm bind -a /usr/local/lib/font/bit/lucida /lib/font/bit/lucida bind -a /usr/local/sys/lib /sys/lib bind -c /usr/local/lib/face/48x48x4/.dict /lib/face/48x48x4/.dict bind -a /usr/local/lib/face/48x48x4 /lib/face/48x48x4 bind -b /usr/local/mail/lib /mail/lib bind -bc /usr/local/sys/src/9/pc /sys/src/9/pc bind -bc /usr/local/sys/src/9/boot /sys/src/9/boot --upas-yybogbbefpanlspadkqshineri-- --upas-vzhsdkozabkpnjmkoftpcvlszm--