[ltrace-commits] 01/01: Also muffle warnings about weird file types referenced by environment

Petr Machata pmachata-guest at moszumanska.debian.org
Mon Mar 2 16:22:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit 8fbbcfc92a7ad388334bf162222ddee1a03c9d29
Author: Petr Machata <pmachata at redhat.com>
Date:   Mon Mar 2 17:21:36 2015 +0100

    Also muffle warnings about weird file types referenced by environment
---
 options.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/options.c b/options.c
index 61d1633..e602848 100644
--- a/options.c
+++ b/options.c
@@ -505,8 +505,9 @@ opt_F_get_kind(struct opt_F_t *entry)
 		} else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
 			entry->kind = OPT_F_FILE;
 		} else {
-			fprintf(stderr, "%s is neither a regular file, "
-				"nor a directory.\n", entry->pathname);
+			if (entry->origin == OPT_F_CMDLINE)
+				fprintf(stderr, "%s is neither a regular file, "
+					"nor a directory.\n", entry->pathname);
 			entry->kind = OPT_F_BROKEN;
 		}
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list