Re: Linux 2.6.16-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 19, 2006 at 08:10:56AM +1100, Eyal Lebedinsky took 0 lines to write:
> Kurt Wall wrote:
> > Seems to be okay here with both gcc 3.4.4 and gcc 4.0.2:
> 
> You must run as root to see it.

Eew. Yes, with root, I get it with both compilers:

root@luther:~# ls -l /dev/null
crw-rw-rw-  1 root sys 1, 3 1994-07-17 19:46 /dev/null
root@luther:~# echo "main() {}" | gcc -xc - -o /dev/null
root@luther:~# ls -l /dev/null
crwxrwxrwx  1 root sys 1, 3 1994-07-17 19:46 /dev/null

root@luther:~# ls -l /dev/null
crw-rw-rw-  1 root sys 1, 3 1994-07-17 19:46 /dev/null
root@luther:~# echo "main() {}" | /usr/local/gcc4/bin/gcc -xc - -o
/dev/null
root@luther:~# ls -l /dev/null
crwxrwxrwx  1 root sys 1, 3 1994-07-17 19:46 /dev/null

Obviously gcc shouldn't do such at thing, but just as obviously, don't
build the kernel as root.

Kurt
-- 
"Right now I'm having amnesia and deja vu at the same time."
	-- Steven Wright
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux