]> granicus.if.org Git - strace/commit
Use printstr for sethostname, setdomainname, and gethostname decoding
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 28 May 2014 16:38:44 +0000 (16:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 28 May 2014 18:09:46 +0000 (18:09 +0000)
commit3a3b71c7d8b4d6ca2d6703008bd77b507271c0b9
treeb1fe6745ad75c82eaf81dea7c16461c8109faa45
parent3b09ebe724b1ee233ce2314a8b70a4dfdf9d2b07
Use printstr for sethostname, setdomainname, and gethostname decoding

The argument passed to sethostname and setdomainname syscalls, as well
as the string returned by gethostname syscall, is not a pathname, so
printpathn is not the right method for its decoding.

* process.c (sys_sethostname, sys_setdomainname): Decode 1st argument
using printstr instead of printpathn.
[ALPHA] (sys_gethostname): Likewise.
process.c