HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
fchflags without defining UF_NODUMP. (Addresses Debian
bug #101361)
2001-06-22 Theodore Tso <tytso@valinux.com>
+ * mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if
+ HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
+ fchflags without defining UF_NODUMP. (Addresses Debian
+ bug #101361)
+
* flushb.c: Use platform independent method of defining the
BLKFLSBUF and FDFLUSH ioctl's. Also include sys/mount.h
since on newer glibc's BLKFLSBUF is defined there.
if (fstat(fd, &st) < 0)
return errno;
-#if HAVE_CHFLAGS
+#if defined(HAVE_CHFLAGS) && defined(UF_NODUMP)
retval = fchflags (fd, UF_NODUMP|UF_IMMUTABLE);
#else
#if HAVE_EXT2_IOCTLS