bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: df enhancment for removable media


From: Eric Blake
Subject: Re: df enhancment for removable media
Date: Wed, 21 Sep 2005 06:25:50 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Juergen Weigert on 9/20/2005 2:54 PM:
>>Wouldn't open() suffice?  That would be simpler.
> 
> 
> I chose opendir(), because I am not sure if all systems allow open() on a
> directory node. Otherwise I'd also favour open(), it has no issue with 
> getting a header file for dirent/direct, or whatever the directory structure 
> may be called.

POSIX requires open() to work on directories, and GNU find has been using
open() and not opendir() for some time now (although with the recent
switch in find to use gnulib's fts module, that will change in find
4.3.x.)  The only bug that I am aware of that was reported to find where
open(dir) failed was due to a cygwin bug which has since been fixed in
cygwin.  If, in fact, we do find a non-compliant system where open() fails
on dirs, it might be better if that system were given a gnulib module that
implemented a wrapper around open which calls stat then open/opendir as
needed, rather than penalizing the majority of compliant systems.

> Sure. 
> Is it sufficient to abondon copyright, 

Nope - FSF requires assignment of copyright, not abandonment.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDMVFO84KuGfSFAYARArbWAJ4u5vf2mb2m41Xf4PXKUmrcl4vpkgCgiHLy
XtODojf1rUFqFXGe6gw8bUA=
=69ER
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]