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