Whamcloud - gitweb
mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2001 01:20:47 +0000 (21:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2001 01:20:47 +0000 (21:20 -0400)
HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
fchflags without defining UF_NODUMP.  (Addresses Debian
bug #101361)

lib/ext2fs/ChangeLog
lib/ext2fs/mkjournal.c

index 00ee60c..959a4be 100644 (file)
@@ -1,5 +1,10 @@
 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.
index 092e4a2..adf6ea5 100644 (file)
@@ -330,7 +330,7 @@ errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t size, int flags)
                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