Subject: Re: Filesystems that don't support devices
To: Darren Reed <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
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" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."