File fix_call_khelper_with_stack.patch of Package drbd-utils.5899

diff -Naur drbd-utils-8.9.8.orig/user/v9/drbdadm_main.c drbd-utils-8.9.8/user/v9/drbdadm_main.c
--- drbd-utils-8.9.8.orig/user/v9/drbdadm_main.c	2016-09-06 21:48:36.000000000 +0800
+++ drbd-utils-8.9.8/user/v9/drbdadm_main.c	2017-08-01 11:37:45.709875663 +0800
@@ -3448,6 +3448,9 @@
 					       rv = E_USAGE;
 					continue;
 				}
+				if (3 == cmd->show_in_usage && ctx.res->stacked) {
+					is_drbd_top = 1;
+				}
 				if (is_drbd_top != ctx.res->stacked && !is_dump) {
 					err("'%s' is a %s resource, and not available in %s mode.\n",
 					    ctx.res->name,
openSUSE Build Service is sponsored by