Description: Upstream changes introduced in version 2.02.84-3.~iwj.1
 This patch has been created by dpkg-source during the package build.
 Here's the last changelog entry, hopefully it gives details on why
 those changes were made:
 .
 lvm2 (2.02.84-3.~iwj.1) unstable; urgency=low
 .
   * Suppress fd warnings, eg
       File descriptor 4 (socket:[5864]) leaked on lvcreate invocation
     by default.  Previously they could be suppressed by setting
     LVM_SUPPRESS_FD_WARNINGS in the environment.  Now they appear only if
     LVM_ENABLE_FD_WARNINGS is set.
 .
 The person named in the Author field signed this changelog entry.
Author: Ian Jackson <ijackson@chiark.greenend.org.uk>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- lvm2-2.02.84.orig/tools/lvmcmdline.c
+++ lvm2-2.02.84/tools/lvmcmdline.c
@@ -1261,7 +1261,7 @@ static void _close_stray_fds(const char
 {
 	struct rlimit rlim;
 	int fd;
-	unsigned suppress_warnings = 0;
+	unsigned suppress_warnings = 1;
 	pid_t ppid = getppid();
 	const char *parent_cmdline = _get_cmdline(ppid);
 
@@ -1271,8 +1271,8 @@ static void _close_stray_fds(const char
 		return;
 	}
 
-	if (getenv("LVM_SUPPRESS_FD_WARNINGS"))
-		suppress_warnings = 1;
+	if (getenv("LVM_ENABLE_FD_WARNINGS"))
+		suppress_warnings = 0;
 
 	for (fd = 3; fd < rlim.rlim_cur; fd++)
 		_close_descriptor(fd, suppress_warnings, command, ppid,
