From 1efa7ee86cee44d010febac5e429892b1ad32cc5271bf1e37c057968fd9e6218 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Mon, 3 Dec 2012 01:06:11 +0000 Subject: [PATCH] Avoid crash in "df --total" due to new coreutils-df-always-hide-rootfs.patch. OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=168 --- coreutils-df-always-hide-rootfs.patch | 2 +- coreutils.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/coreutils-df-always-hide-rootfs.patch b/coreutils-df-always-hide-rootfs.patch index d1b859b..60f7d38 100644 --- a/coreutils-df-always-hide-rootfs.patch +++ b/coreutils-df-always-hide-rootfs.patch @@ -6,7 +6,7 @@ Index: coreutils-8.17/src/df.c if (!selected_fstype (fstype) || excluded_fstype (fstype)) return; -+ if (STRNCMP_LIT (fstype, "rootfs") == 0) ++ if (fstype && (STRNCMP_LIT (fstype, "rootfs") == 0)) + return; + /* If MOUNT_POINT is NULL, then the file system is not mounted, and this diff --git a/coreutils.changes b/coreutils.changes index 4f2ad7b..1a39af4 100644 --- a/coreutils.changes +++ b/coreutils.changes @@ -1,3 +1,8 @@ +Mon Dec 3 00:45:43 UTC 2012 - mail@bernhard-voelker.de + +- Avoid crash in "df --total" due to new + coreutils-df-always-hide-rootfs.patch. + ------------------------------------------------------------------- Wed Nov 28 12:25:18 UTC 2012 - rmilasan@suse.com