If the user doesn't have access to open the mount point then fd will
display a permission denied error message.
 config.h shows the statvfs() was found. But...

% strace df |& egrep statvfs
% strace df |& tail -20
read(4, "/dev/root / ext2 rw 0 0\nnone /pr"..., 1024) = 102
stat("/", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
stat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(4)                                = 0
munmap(0x40015000, 4096)                = 0
close(3)                                = 0
open("/boot", O_RDONLY)                 = -1 EACCES (Permission denied)
write(1, "Filesystem           1k-blocks  "..., 186Filesystem           1k-blocks      
Used Available Use% Mounted on
/dev/sda1              2028129   1158221    765084  60% /
/dev/sdb2              3957504   3325616    591032  85% /usr
) = 186
write(2, "df: ", 4df: )                     = 4
write(2, "/boot", 5/boot)                    = 5
write(2, ": Permission denied", 19: Permission denied)     = 19
write(2, "\n", 1
)                       = 1
close(1)                                = 0
munmap(0x40014000, 4096)                = 0
_exit(1)                                = ?


 Also it (fileutils) doesn't correctly find that strftime works...
 I'm using glibc-2.1.2 and it says it doesn't work, turning on
debugging inside the strftime conf test shows...

% ./test                  
fmt: "%f", expected "5", got "%f"
zsh: 20950 exit 1     ./test

 Having a look at my man page for strfimte shows that %f doesn't exist
(it lists all the others and the standards they apply to upto SuS2),
also the info documentation for glibc doesn't document it.

-- 
James Antill -- [EMAIL PROTECTED]
I am always an optimist, but frankly there is no hope.
   -Hosni Mubarek

Reply via email to