]> granicus.if.org Git - strace/commit
nsfs: simplify auxstr logic
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 19 Aug 2018 17:58:18 +0000 (19:58 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 27 Aug 2018 23:41:41 +0000 (23:41 +0000)
commit25a4cafa90d77e92092474dba024baafe9aed091
tree6ae65376fe747a169ce08ce159d17ecc5d7e4273
parent6e7da522869a7ff5f4f2880390723f996a526300
nsfs: simplify auxstr logic

There's no need to check whether non-NULL value is being assigned to
auxstr; syscall_exiting_trace does it itself.

* nsfs.c (nsfs_ioctl) <case NS_GET_NSTYPE>: Simply assign result of
xlookup to auxstr if syserror(tcp) is false.
nsfs.c