On Fri 27 Jan 2012 at 01:35PM, Danek Duvall wrote:
> I didn't fully test salvaging block and character special files when I
> rewrote copytree a few months back, and now someone's run into problems.
> 
> Here's a fix, and a test case:
> 
>     https://cr.opensolaris.org/action/browse/pkg/dduvall/salvage-special/

I think bad things happen when running in a zone:

        #! /usr/bin/python2.6

        import os

        st = os.stat("/dev/null")
        os.mknod("/var/tmp/null", st.st_mode, st.st_dev)
        
        print "OK"

But that gets a traceback:

        # /tmp/t
        Traceback (most recent call last):
          File "/tmp/t", line 6, in <module>
            os.mknod("/var/tmp/null", st.st_mode, st.st_dev)
        OSError: [Errno 1] Not owner


-- 
Mike Gerdts
Solaris Core OS / Zones                 http://blogs.oracle.com/zoneszone/
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to