Re: Linux compatibility and /dev/null
What gives? ls -l /dev/null says: crw-rw-rw- 1 root wheel2, 2 Oct 9 12:45 /dev/null As it should. That's groovy. But what about /compat/linux/dev/null? -rw-r--r-- 1 root wheel 0 Oct 2 17:59 /compat/linux/dev/null Huh??! A _file_??! It should be a device! Hmm??? Doing chmod 666 /compat/linux/dev/null fixes the problem. Temporarily only. A better workaround is rm /compat/linux/dev/null; mknod /compat/linux/dev/null c 2 2 root:wheel. With your solution, that file may fill up with unwanted junk. This looks like a bug in the linux-base port. I'll file a PR. Indeed. Good move. M -- o Mark Murray \_ O.\_Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Linux compatibility and /dev/null
Hi: I was trying to get my linux-mozilla-1.1 to spawn off acroread when I click on PDF links, but I kept getting this: /usr/local/bin/acroread5: /dev/null: Permission denied I played with the acroread5 script and added, at the beginning, echo hi /dev/null and got: + echo hi /home/bwithrow/bin/acroread5: /dev/null: Permission denied What gives? ls -l /dev/null says: crw-rw-rw- 1 root wheel2, 2 Oct 9 12:45 /dev/null That's groovy. But what about /compat/linux/dev/null? -rw-r--r-- 1 root wheel 0 Oct 2 17:59 /compat/linux/dev/null Hmm??? Doing chmod 666 /compat/linux/dev/null fixes the problem. This looks like a bug in the linux-base port. I'll file a PR. -- Robert Withrow, [EMAIL PROTECTED], +1 978 288 8256, ESN 248 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: Linux compatibility and /dev/null
On Thu, Oct 17, 2002 at 09:53:37AM -0400, Robert Withrow wrote: Hmm??? Doing chmod 666 /compat/linux/dev/null fixes the problem. This looks like a bug in the linux-base port. I'll file a PR. The port already does this: # # Make sure we have a /dev/null in the chrooted environment. ${MKDIR} ${LINUXBASE}/dev ${RM} -f ${LINUXBASE}/dev/null mknod ${LINUXBASE}/dev/null c 2 2 ${CHMOD} 666 ${LINUXBASE}/dev/null I don't know why yours didnt do that, but it certainly should have. Kris msg37623/pgp0.pgp Description: PGP signature
Re: Linux compatibility and /dev/null
Mark Murray wrote: -rw-r--r-- 1 root wheel 0 Oct 2 17:59 /compat/linux/dev/null Huh??! A _file_??! It should be a device! Definitely wrong. Hmm??? Doing chmod 666 /compat/linux/dev/null fixes the problem. Temporarily only. A better workaround is rm /compat/linux/dev/null; mknod /compat/linux/dev/null c 2 2 root:wheel. With your solution, that file may fill up with unwanted junk. Why not just remove it? If you remove it, the device will be looked up in the system directory instead, and it will get the real /dev/null instead of the compat version. There aren't supposed to be semantic differences between FreeBSD and Linux, for /dev/null. It sounds instead like there is a problem with the union of / and /compat/linux for xxx redirects... certain kinds of opens. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: Linux compatibility and /dev/null
[EMAIL PROTECTED] said: :- Why not just remove it? I re-installed linux_base and that *did* remove it. And, as Terry suggests, acroread works fine without it. In fact there is no /compat/linux/dev directory at all after the reinstall. I don't have a clue how that file got created in the first place, except to guess that it is a side effect of installing some port. Also, Kris points out that the Makefile for the linux_base port has this in the do-install section # Make sure we have a /dev/null in the chrooted environment. @${MKDIR} ${LINUXBASE}/dev @${RM} -f ${LINUXBASE}/dev/null @mknod ${LINUXBASE}/dev/null c 2 2 @${CHMOD} 666 ${LINUXBASE}/dev/null But, as I said above, there is no /compat/linux/dev after the install, so you can color me confused. -- Robert Withrow, [EMAIL PROTECTED], +1 978 288 8256, ESN 248 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message