diff options
author | Karel Zak | 2007-02-27 16:49:25 +0100 |
---|---|---|
committer | Karel Zak | 2007-02-27 16:49:25 +0100 |
commit | 2bfcd20b8d78ee9191cbfc4ea420f44ecdfb25cd (patch) | |
tree | 7bc60324f2fb70b183c6c29a84ed671a30ff89bb /disk-utils | |
parent | tests: add expected outputs for cramfs (diff) | |
download | kernel-qcow2-util-linux-2bfcd20b8d78ee9191cbfc4ea420f44ecdfb25cd.tar.gz kernel-qcow2-util-linux-2bfcd20b8d78ee9191cbfc4ea420f44ecdfb25cd.tar.xz kernel-qcow2-util-linux-2bfcd20b8d78ee9191cbfc4ea420f44ecdfb25cd.zip |
mkfs.cramfs: fix a way how mkfs works with empty files
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/mkfs.cramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c index ac2a308af..23878248c 100644 --- a/disk-utils/mkfs.cramfs.c +++ b/disk-utils/mkfs.cramfs.c @@ -661,7 +661,7 @@ write_data(struct entry *entry, char *base, unsigned int offset) { if (e->same) { set_data_offset(e, base, e->same->offset); e->offset = e->same->offset; - } else { + } else if (e->size) { set_data_offset(e, base, offset); e->offset = offset; offset = do_compress(base, offset, e->name, |