bug-coreutils
[Top][All Lists]
Advanced

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

coreutils 5.2.1 stat bug: HAVE_STRUCT_STATXFS_F_TYPE should be 1 on linu


From: Pozsar Balazs
Subject: coreutils 5.2.1 stat bug: HAVE_STRUCT_STATXFS_F_TYPE should be 1 on linux
Date: Tue, 31 Aug 2004 13:19:57 +0200
User-agent: Mutt/1.5.5.1i

On my linux system, HAVE_STRUCT_STATVFS_F_BASETYPE is undefined,
thus in src/stat.c, between lines 60..72:

#if HAVE_STRUCT_STATVFS_F_BASETYPE
# define STRUCT_STATVFS struct statvfs
# define HAVE_STRUCT_STATXFS_F_TYPE HAVE_STRUCT_STATVFS
# if HAVE_STRUCT_STATVFS_F_NAMEMAX
#  define SB_F_NAMEMAX(S) ((uintmax_t) ((S)->f_namemax))
# endif
#else
# define STRUCT_STATVFS struct statfs
# define HAVE_STRUCT_STATXFS_F_TYPE HAVE_STRUCT_STATFS
# if HAVE_STRUCT_STATFS_F_NAMELEN
#  define SB_F_NAMEMAX(S) ((uintmax_t) ((S)->f_namelen))
# endif
#endif

HAVE_STRUCT_STATXFS_F_TYPE is defined the same as HAVE_STRUCT_STATFS.
Unfortunately, "HAVE_STRUCT_STATFS" is undefined, moreover, never 
defined in the whole source code.

I think (and this is just a guess) HAVE_STRUCT_STATFS_F_TYPE should be 
used instead.

Attached patch shows what I mean, and works for me(tm).


-- 
Pozsar Balazs




reply via email to

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