]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
setflags.c, fsetflags.c: On linux systems, undefine HAVE_CHFLAGS
authorTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jun 2004 04:52:08 +0000 (00:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jun 2004 04:52:08 +0000 (00:52 -0400)
to deal with lame glibc's that define this function
without actually implementing it.  Can you say "attractive
nuisance", boys and girls?   I knew you could!  (Thanks to
Pavel Troller for reporting this braindamage.)

lib/e2p/ChangeLog
lib/e2p/fsetflags.c
lib/e2p/setflags.c

index d5c04e8a7c948584eaa743561f0ccba062074602..abd73f679c19bffc7ccf8af058875da379aaa41e 100644 (file)
@@ -1,3 +1,11 @@
+2004-06-04  Theodore Ts'o  <tytso@mit.edu>
+
+       * setflags.c, fsetflags.c: On linux systems, undefine HAVE_CHFLAGS
+               to deal with lame glibc's that define this function
+               without actually implementing it.  Can you say "attractive
+               nuisance", boys and girls?   I knew you could!  (Thanks to
+               Pavel Troller for reporting this braindamage.)
+
 2004-02-29  Brian Bergstrand  <brian@bergstrand.org>
 
        * Makefile.in: Use $(BSDLIB_PIC_FLAG) to determine whether to use
index 8b2eed4c1e5263b2890986ee1a0d6a5da3dc9906..2f1277fdaf0252c2b72dbdc1182bf1bd434f7956 100644 (file)
 
 #include "e2p.h"
 
+/* 
+ * Deal with lame glibc's that define this function without actually 
+ * implementing it.  Can you say "attractive nuisance", boys and girls?
+ * I knew you could!
+ */
+#ifdef __linux__
+#undef HAVE_CHFLAGS
+#endif
+
 #ifdef O_LARGEFILE
 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE)
 #else
index 1693035766496de4c126796e96f5e97478571eeb..47c52a7ad2a144de9bd8818a548a1db1898152c5 100644 (file)
 
 #include "e2p.h"
 
+/* 
+ * Deal with lame glibc's that define this function without actually 
+ * implementing it.  Can you say "attractive nuisance", boys and girls?
+ * I knew you could!
+ */
+#ifdef __linux__
+#undef HAVE_CHFLAGS
+#endif
+
 int setflags (int fd, unsigned long flags)
 {
        struct stat buf;