mirror of https://github.com/vitalif/e2fsprogs
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)bitmap-optimize
parent
d90f3494b2
commit
7833262585
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue