lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 2 Jun 2009 20:12:41 +0800 From: Peng Tao <bergwolf@...il.com> To: linux-ext4@...r.kernel.org Cc: tytso@....edu, Peng Tao <bergwolf@...il.com> Subject: [PATCH-e2fsprogs] filefrag: accept positive ioctl return value Some ioctl() returns non-negative value on success. filefrag_fiemap should treat positive ioctl() return values as success. This can be triggered by running filefrag on btrfs partitions. Signed-off-by: Peng Tao <bergwolf@...il.com> --- misc/filefrag.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc/filefrag.c b/misc/filefrag.c index 80ac05c..3dc966a 100644 --- a/misc/filefrag.c +++ b/misc/filefrag.c @@ -208,7 +208,7 @@ int filefrag_fiemap(int fd, int blk_shift, int *num_extents) fiemap_incompat_printed = 1; } } - if (rc) + if (rc < 0) return rc; if (!verbose) { -- 1.6.2.GIT -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists