summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/ChangeLog5
-rw-r--r--misc/chattr.c3
-rw-r--r--misc/lsattr.c3
3 files changed, 11 insertions, 0 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 10e5e9d9..1d02bf57 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-07 Theodore Tso <tytso@valinux.com>
+
+ * chattr.c, lsattr.c: Define the _LARGEFILE64_SOURCE to force the
+ use of the LFS so that lstat will work on large files.
+
2001-01-17 Theodore Ts'o <tytso@valinux.com>
* tune2fs.c, mke2fs.c, tune2fs.8.in, mke2fs.8.in: Change user
diff --git a/misc/chattr.c b/misc/chattr.c
index f0301e67..d5449f35 100644
--- a/misc/chattr.c
+++ b/misc/chattr.c
@@ -18,6 +18,9 @@
* 98/12/29 - Display version info only when -V specified (G M Sipe)
*/
+#define _LARGEFILE64_SOURCE
+#define _FILE_OFFSET_BITS 64
+
#include <sys/types.h>
#include <dirent.h>
#include <fcntl.h>
diff --git a/misc/lsattr.c b/misc/lsattr.c
index 857c4818..3fadeb2b 100644
--- a/misc/lsattr.c
+++ b/misc/lsattr.c
@@ -17,6 +17,9 @@
* 98/12/29 - Display version info only when -V specified (G M Sipe)
*/
+#define _LARGEFILE64_SOURCE
+#define _FILE_OFFSET_BITS 64
+
#include <sys/types.h>
#include <dirent.h>
#ifdef HAVE_ERRNO_H