]> granicus.if.org Git - strace/commit
printfd: quote pathnames
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 24 Jan 2015 19:51:39 +0000 (19:51 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Jan 2015 19:05:40 +0000 (19:05 +0000)
commitc7235992dc0c2367eea9fa9f44a037a2b7b99d34
tree6afe964ad826aa8b73f4381bf05ff1d4b2122546
parent513e96eb94841734274c0607aae2c9f212411eee
printfd: quote pathnames

Change printfd() behaviour in show_fd_path mode to quote pathnames
the same way printpathn() does.

* util.c (printfd): Print non-socket paths using print_quoted_string.
* tests/scm_rights-fd.test: Test it.
* tests/scm_rights.c: Update.
tests/scm_rights-fd.test
tests/scm_rights.c
util.c