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