Blame SOURCES/ltrace-0.7.91-XDG_CONFIG_DIRS-2.patch
|
|
39d69a |
From 8fbbcfc92a7ad388334bf162222ddee1a03c9d29 Mon Sep 17 00:00:00 2001
|
|
|
39d69a |
From: Petr Machata <pmachata@redhat.com>
|
|
|
39d69a |
Date: Mon, 2 Mar 2015 17:21:36 +0100
|
|
|
39d69a |
Subject: [PATCH] Also muffle warnings about weird file types referenced by
|
|
|
39d69a |
environment
|
|
|
39d69a |
|
|
|
39d69a |
---
|
|
|
39d69a |
options.c | 5 +++--
|
|
|
39d69a |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
39d69a |
|
|
|
39d69a |
diff --git a/options.c b/options.c
|
|
|
39d69a |
index 61d1633..e602848 100644
|
|
|
39d69a |
--- a/options.c
|
|
|
39d69a |
+++ b/options.c
|
|
|
39d69a |
@@ -505,8 +505,9 @@ opt_F_get_kind(struct opt_F_t *entry)
|
|
|
39d69a |
} else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
|
|
|
39d69a |
entry->kind = OPT_F_FILE;
|
|
|
39d69a |
} else {
|
|
|
39d69a |
- fprintf(stderr, "%s is neither a regular file, "
|
|
|
39d69a |
- "nor a directory.\n", entry->pathname);
|
|
|
39d69a |
+ if (entry->origin == OPT_F_CMDLINE)
|
|
|
39d69a |
+ fprintf(stderr, "%s is neither a regular file, "
|
|
|
39d69a |
+ "nor a directory.\n", entry->pathname);
|
|
|
39d69a |
entry->kind = OPT_F_BROKEN;
|
|
|
39d69a |
}
|
|
|
39d69a |
}
|
|
|
39d69a |
--
|
|
|
39d69a |
2.1.0
|
|
|
39d69a |
|