0

I cannot get useful information from ltrace on Fedora 30, for example:

ltrace -f hostname
my.host.name
[pid 32164] +++ exited (status 0) +++

However it works on Debian 9:

# ltrace hostname                     
rindex("hostname", '/')                                           = nil
strcmp("hostname", "domainname")                                  = 4
strcmp("hostname", "ypdomainname")                                = -17
strcmp("hostname", "nisdomainname")                               = -6
getopt_long(1, 0x7ffd64b676d8, "aAdfbF:h?iIsVy", 0x55754eb5fc00, nil) = -1
__errno_location()                                                = 0x7fcefa2ef418
malloc(128)                                                       = 0x55754f9b6010
gethostname("debian9", 128)                                       = 0
memchr("debian9", '\0', 128)                                      = 0x55754f9b6017
puts("debian9"debian9
)                                                   = 8
+++ exited (status 0) +++

So, is there an alternative way of doing that on Fedora?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.