df: use open(2), not stat, to trigger automounting
commitdbd17157d7e693b8de9737f802db0e235ff5a3e6
authorTomas Smetana <t.smetana@gmail.com>
Tue, 28 Apr 2009 09:21:49 +0000 (28 11:21 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 28 Apr 2009 12:32:17 +0000 (28 14:32 +0200)
treec820a31396b6091e8e4ffbe22267cae29070c7a5
parentcb9fd937437cf4f9347925f6b9c82f4e92bae6e5
df: use open(2), not stat, to trigger automounting

* src/df.c (main): When iterating over command-line arguments,
attempting to ensure each backing file system is mounted, use
open, not stat.  stat is no longer sufficient to trigger
automounting, in some cases.  Based on a suggestion from Ian Kent.
More details in http://bugzilla.redhat.com/497830
THANKS
src/df.c