Neale Ferguson wrote:
> I am getting strange results from directing output to /dev/null when logged 
> on as a non-root user using /bin/sh.  
> 
>>From a non-root user I see the following:
> $ ls -l /devices/pseudo/[EMAIL PROTECTED]:null  
> crw-rw-rw-   1 root     sys       13,  2 Feb  5 16:24 /devices/pseudo/[EMAIL 
> PROTECTED]:null 
> $ ls -l /dev/null
> lrwxrwxrwx   1 root     root          27 Jan  1  1970 /dev/null -> 
> ../devices/ps
> eudo/[EMAIL PROTECTED]:null  
> $ echo abdef >/dev/null
> /dev/null: cannot create  
> 
>>From root:
> 
> # echo abcdef >/dev/null
> # 
> 
> A trace shows that a creat64("/dev/null") is being called which appears weird 
> to me.

Redirecting with > tells the shell to replace the file - are you sure you don't
mean >> ?


-- 
        -Alan Coopersmith-           [EMAIL PROTECTED]
         Sun Microsystems, Inc. - X Window System Engineering

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to