Subject: Re: Filesystems that don't support devices
To: Darren Reed <darrenr@reed.wattle.id.au>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 12/19/2001 17:53:17
>> > >         /* If we have devices, we cannot be on msdosfs */
>> > >         if (access(_PATH_CONSOLE, F_OK) != -1)
>> > >                 return;
>> >
>> > Um, shouldn't that check that _PATH_CONSOLE is actually a device?
>> 
>> I don't know.
>> 
>> Is it valid for /dev/console to be a symlink, or even a regular file?
>
>On Solaris, the entire /dev/* is symlinks.

and access(2) follows symlinks, so that's okay, but access(2) call
should probably be replaced with a call to stat(2).

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."