FreeBSD 6.X and postfix/postmap - corrupt maps

Darek M darek at nyi.net
Tue Aug 15 18:30:13 UTC 2006


Hi there,

I am unable to use the 'postmap' program under 6.0- or 6.1-RELEASE.  
Instead of building a valid hash map, it puts in various data from what 
appears to be my /etc/master.passwd file, complete with crypted 
password.  I believe that this is some type of a library issue.

I'm doing this with postfix-2.3.2 downloaded right off the website, but 
the same happened with earlier releases, as well as an install from the 
ports.

As an example, I use the file 'transport' which contains
# cat /etc/postfix/transport
*       smtp:[192.168.0.1]:25

The syntax is correct as I use it on 5.4 and 5.5 boxes (I've had to 
downgrade to that to be able to use postfix).

# uname -a
FreeBSD some.host.name 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Fri Jul 14 
13:43:37 EDT 2006     darek@:/usr/src/sys/i386/compile/SOME_KERNEL  i386

# /usr/sbin/postmap transport

On a system where postmap works fine, this is what I get:

# strings /etc/postfix/transport
* smtp:[192.168.22.29]:25

Please scroll down to APPENDIX_1 to see the 'strings' output on a 6.1 
box.  I tried this on 6.0 and 6.1 installed on a number of different 
machines, all with the same result, so I don't think that this is a 
memory or hardware issue.  I also tried this on 6.x, 4.10, 4.11, 5.4 and 
5.5 on the same system, and only the 6.x installs failed in this way.

Also, scroll down to APPENDIX_2 for an strace of the postmap execution.  
You will note that the open, read, and write calls often have weird info 
in them (I believe the filename part), with parts of strings, and random 
characters, like 'open("ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ'


I got a couple USB-only Dell towers for my SMTP boxes, and FreeBSD below 
6 doesn't recognize the keyboard during install.  So I'm forced to use 
6.x with these.  Unless someone knows how to use a USB keyboard in 5.5 
installs...

Thanks.


APPENDIX_1
# strings transport.db
darek
*****my encrypted password*****
User &
/home/darek
/usr/local/bin/bash
darek
*****my encrypted password*****
User &
/home/darek
/usr/local/bin/bash
1darekdarek
*****my encrypted password*****
User &
/home/darek
/usr/local/bin/bash
darek
*****my encrypted password*****
User &
/home/darek
/usr/local/bin/bash
AdarekGdnscache
User &
/home/Gdnscache
/sbin/noshell
Gdnscache
User &
/home/Gdnscache
/sbin/noshell
nobody
Unprivileged user
/nonexistent
/usr/sbin/nologin
nobody
Unprivileged user
/nonexistent
/usr/sbin/nologin
Post Office Owner
/nonexistent
/usr/sbin/nologin
1poppop
Post Office Owner
/nonexistent
/usr/sbin/nologin
Apopbind
Bind Sandbox
/usr/sbin/nologin
bind
Bind Sandbox
/usr/sbin/nologin
bind
Bind Sandbox
/usr/sbin/nologin
5bind
Bind Sandbox
/usr/sbin/nologin
kmem
KMem Sandbox
/usr/sbin/nologin
kmem
KMem Sandbox
/usr/sbin/nologin
Tty Sandbox
/usr/sbin/nologin
Tty Sandbox
/usr/sbsmtp:[192.168.0.1]:25


APPENDIX_2
# mount -t procfs proc /proc
# /usr/local/bin/strace /usr/sbin/postmap transport
execve(0xbfbfe720, [0xbfbfec10], [/* 0 vars */]) = 0
mmap(0, 3608, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28082000
munmap(0x28082000, 3608)                = 0
__sysctl([...], 0x2807e998, 0xbfbfe9c4, NULL, 0) = 0
mmap(0, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 
0x28082000
issetugid(0)                            = 0
open("/etc/libmap.conf", O_RDONLY)      = -1 ENOENT (No such file or 
directory)
open("/var/run/ld-elf.so.hints", O_RDONLY) = 3
read(3, "DUMP_REL_PRE\0LD_DUMP_REL_POST\0__"..., 128) = 128
lseek(3, 128, SEEK_SET)                 = 128
read(3, "/lib:/usr/lib:/usr/lib/compat:/u"..., 60) = 60
close(3)                                = 0
access("/lib/libpcre.so.0", F_OK)       = -1 ENOENT (No such file or 
directory)
access("/usr/lib/libpcre.so.0", F_OK)   = -1 ENOENT (No such file or 
directory)
access("/usr/lib/compat/libpcre.so.0", F_OK) = -1 ENOENT (No such file 
or directory)
access("/usr/X11R6/lib/libpcre.so.0", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/local/lib/libpcre.so.0", F_OK) = 0
open("/usr/local/lib/libpcre.so.0", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
read(3, "\177ELF\1\1\1\t\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\234\23"..., 
4096) = 4096
mmap(0, 94208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_NOCORE, 3, 0) = 
0x2808a000
mprotect(0x28099000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x28099000, 4096, PROT_READ|PROT_EXEC) = 0
mmap(0x2809a000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x10000) = 0x2809a000
close(3)                                = 0
access("/lib/libc.so.6", F_OK)          = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
read(3, "\177ELF\1\1\1\t\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\331\1"..., 
4096) = 4096
mmap(0, 884736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_NOCORE, 3, 0) = 
0x280a1000
mprotect(0x28160000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x28160000, 4096, PROT_READ|PROT_EXEC) = 0
mmap(0x28161000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0xc0000) = 0x28161000
mmap(0x28166000, 77824, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0x28166000
close(3)                                = 0
sysarch(0xa, 0xbfbfea40)                = 0
mmap(0, 896, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28179000
munmap(0x28179000, 896)                 = 0
mmap(0, 664, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28179000
munmap(0x28179000, 664)                 = 0
mprotect(0x280a1000, 786432, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mmap(0, 22208, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28179000
munmap(0x28179000, 22208)               = 0
mprotect(0x280a1000, 786432, PROT_READ|PROT_EXEC) = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
umask(022)                              = 022
fstat(0, {st_mode=0, st_size=2884115740171333484, ...}) = 0
fstat(1, {st_mode=S_IFBLK|S_ISUID|S_ISGID|S_ISVTX|0464, 
st_rdev=makedev(111, 671482108), ...}) = 0
fstat(2, {st_mode=064, st_size=4294971392, ...}) = 0
readlink("/etc/malloc.conf", 0xbfbfea50, 63) = -1 ENOENT (No such file 
or directory)
issetugid(0xbfbfea48)                   = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 
0x28179000
break(0x8063000)                        = 0
break(0x8064000)                        = 0
break(0x8065000)                        = 0
geteuid(0xbfbfed26)                     = 0
getuid()                                = 0 (euid 0)
issetugid(0xbfbfed26)                   = 0
getgid()                                = 0 (egid 0)
getegid(0xbfbfed26)                     = 0
geteuid(0x3)                            = 0
getuid()                                = 0 (euid 0)
issetugid(0x3)                          = 0
getgid()                                = 0 (egid 0)
getegid(0x3)                            = 0
access("/etc/localtime", R_OK)          = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFBLK|S_ISUID|S_ISGID|0562, st_rdev=makedev(100, 
1713373281), ...}) = 0
read(3, "ate memory\0Permission denied\0Bad"..., 7944) = 1267
close(3)                                = 0
socket(PF_UNIX, SOCK_DGRAM, 0)          = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
connect(3, {sa_family=0x61 /* AF_??? */, sa_data="valid argument"}, 106) = 0
gettimeofday({1869566976, 1851878688}, NULL) = 0
open("/etc/postfix/main.cf", O_RDONLY)  = 4
break(0x8066000)                        = 0
break(0x8067000)                        = 0
break(0x8069000)                        = 0
read(4, "# Global Postfix configuration f"..., 4096) = 4096
read(4, " = $myhostname, localhost\n\n# The"..., 4096) = 4096
read(4, "response code when a recipient d"..., 4096) = 4096
read(4, "r [address]:port; the form [host"..., 4096) = 4096
read(4, " type.\n#\n#mail_spool_directory ="..., 4096) = 4096
read(4, "le physical lines.\n#\n# By defaul"..., 4096) = 4096
read(4, "he full pathname of the Postfix "..., 4096) = 1164
break(0x806a000)                        = 0
read(4, "", 4096)                       = 0
fstat(4, {st_mode=S_IFBLK|0560, st_rdev=makedev(104, 543490164), ...}) = 0
close(4)                                = 0
gettimeofday({4294967295, 4294967295}, NULL) = 0
__sysctl([-1.-1], 2, 
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 
[4294967295], NULL, 0) = 0
stat("/etc/nsswitch.conf", {st_mode=02, st_size=12948042205102123, ...}) = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 4
break(0x806b000)                        = 0
ioctl(4, TIOCGETA, 0xbfbfe7f0)          = -1 ENOTTY (Inappropriate ioctl 
for device)
fstat(4, {st_mode=02, st_size=12948042205102123, ...}) = 0
break(0x806c000)                        = 0
read(4, "group: compat\ngroup_compat: nis\n"..., 4096) = 113
read(4, "", 4096)                       = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
access("/lib/nss_compat.so.1", F_OK)    = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/lib/compat/nss_compat.so.1", F_OK) = -1 ENOENT (No such 
file or directory)
access("/usr/X11R6/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/usr/local/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/lib/nss_compat.so.1", F_OK)    = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_compat.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
access("/lib/nss_nis.so.1", F_OK)       = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_nis.so.1", F_OK)   = -1 ENOENT (No such file or 
directory)
access("/usr/lib/compat/nss_nis.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/usr/X11R6/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/local/lib/nss_nis.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
access("/lib/nss_nis.so.1", F_OK)       = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_nis.so.1", F_OK)   = -1 ENOENT (No such file or 
directory)
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
access("/lib/nss_files.so.1", F_OK)     = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/lib/compat/nss_files.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/usr/X11R6/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/usr/local/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/lib/nss_files.so.1", F_OK)     = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_files.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
access("/lib/nss_dns.so.1", F_OK)       = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_dns.so.1", F_OK)   = -1 ENOENT (No such file or 
directory)
access("/usr/lib/compat/nss_dns.so.1", F_OK) = -1 ENOENT (No such file 
or directory)
access("/usr/X11R6/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/local/lib/nss_dns.so.1", F_OK) = -1 ENOENT (No such file or 
directory)
access("/lib/nss_dns.so.1", F_OK)       = -1 ENOENT (No such file or 
directory)
access("/usr/lib/nss_dns.so.1", F_OK)   = -1 ENOENT (No such file or 
directory)
sigprocmask(SIG_SETMASK, [], NULL)      = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
ioctl(4, TIOCGETA, 0xbfbfe800)          = -1 ENOTTY (Inappropriate ioctl 
for device)
close(4)                                = 0
geteuid(0x68acf04)                      = 0
stat("/etc/spwd.db", {st_mode=S_IFBLK|S_ISUID|S_ISGID|S_ISVTX|0151, 
st_rdev=makedev(114, 1869545504), ...}) = 0
open("/etc/spwd.db", O_RDONLY)          = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
read(4, "\0\6\25a\0\0\0\2\0\0\4\322\0\0\20\0\0\0\0\f\0\0\1\0\0\0"..., 
260) = 260
lseek(4, 24576, SEEK_SET)               = 24576
read(4, "2\0\370\17\367\17\362\17\270\17\263\17y\17r\17\35\17\30"..., 
4096) = 4096
break(0x806d000)                        = 0
lseek(4, 16384, SEEK_SET)               = 16384
read(4, "0\0\373\17\276\17\271\17|\17w\0178\0173\17\364\16\357\16"..., 
4096) = 4096
break(0x806e000)                        = 0
lseek(4, 20480, SEEK_SET)               = 20480
read(4, ",\0\373\17\301\17\274\17\202\17}\17(\17#\17\316\16\311"..., 
4096) = 4096
break(0x806f000)                        = 0
lseek(4, 28672, SEEK_SET)               = 28672
read(4, "(\0\373\17\276\17\271\17|\17w\17+\17&\17\332\16\324\16"..., 
4096) = 4096
break(0x8070000)                        = 0
lseek(4, 32768, SEEK_SET)               = 32768
read(4, "(\0\373\17\257\17\252\17^\17Y\17\36\17\31\17\336\16\325"..., 
4096) = 4096
break(0x8071000)                        = 0
lseek(4, 4096, SEEK_SET)                = 4096
read(4, "$\0\373\17\300\17\273\17\200\17{\17>\0179\17\374\16\367"..., 
4096) = 4096
break(0x8072000)                        = 0
lseek(4, 8192, SEEK_SET)                = 8192
read(4, " \0\373\17\276\17\271\17|\17w\17*\17%\17\330\16\322\16"..., 
4096) = 4096
break(0x8073000)                        = 0
lseek(4, 12288, SEEK_SET)               = 12288
read(4, " \0\374\17\260\17\254\17`\17\\\17!\17\35\17\342\16\335"..., 
4096) = 4096
close(4)                                = 0
stat("/etc/nsswitch.conf", {st_mode=02, st_size=12948042205102123, ...}) = 0
geteuid(0x2816b080)                     = 0
stat("/etc/spwd.db", {st_mode=S_IFBLK|S_ISUID|S_ISGID|S_ISVTX|0151, 
st_rdev=makedev(114, 1869545504), ...}) = 0
open("/etc/spwd.db", O_RDONLY)          = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
read(4, "\0\6\25a\0\0\0\2\0\0\4\322\0\0\20\0\0\0\0\f\0\0\1\0\0\0"..., 
260) = 260
lseek(4, 24576, SEEK_SET)               = 24576
read(4, "2\0\370\17\367\17\362\17\270\17\263\17y\17r\17\35\17\30"..., 
4096) = 4096
lseek(4, 16384, SEEK_SET)               = 16384
read(4, "0\0\373\17\276\17\271\17|\17w\0178\0173\17\364\16\357\16"..., 
4096) = 4096
lseek(4, 20480, SEEK_SET)               = 20480
read(4, ",\0\373\17\301\17\274\17\202\17}\17(\17#\17\316\16\311"..., 
4096) = 4096
lseek(4, 28672, SEEK_SET)               = 28672
read(4, "(\0\373\17\276\17\271\17|\17w\17+\17&\17\332\16\324\16"..., 
4096) = 4096
lseek(4, 32768, SEEK_SET)               = 32768
read(4, "(\0\373\17\257\17\252\17^\17Y\17\36\17\31\17\336\16\325"..., 
4096) = 4096
lseek(4, 4096, SEEK_SET)                = 4096
read(4, "$\0\373\17\300\17\273\17\200\17{\17>\0179\17\374\16\367"..., 
4096) = 4096
lseek(4, 8192, SEEK_SET)                = 8192
read(4, " \0\373\17\276\17\271\17|\17w\17*\17%\17\330\16\322\16"..., 
4096) = 4096
lseek(4, 12288, SEEK_SET)               = 12288
read(4, " \0\374\17\260\17\254\17`\17\\\17!\17\35\17\342\16\335"..., 
4096) = 4096
close(4)                                = 0
stat("/etc/nsswitch.conf", {st_mode=02, st_size=12948042205102123, ...}) = 0
geteuid(0x2816b080)                     = 0
stat("/etc/spwd.db", {st_mode=S_IFBLK|S_ISUID|S_ISGID|S_ISVTX|0151, 
st_rdev=makedev(114, 1869545504), ...}) = 0
open("/etc/spwd.db", O_RDONLY)          = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
read(4, "\0\6\25a\0\0\0\2\0\0\4\322\0\0\20\0\0\0\0\f\0\0\1\0\0\0"..., 
260) = 260
lseek(4, 24576, SEEK_SET)               = 24576
read(4, "2\0\370\17\367\17\362\17\270\17\263\17y\17r\17\35\17\30"..., 
4096) = 4096
lseek(4, 16384, SEEK_SET)               = 16384
read(4, "0\0\373\17\276\17\271\17|\17w\0178\0173\17\364\16\357\16"..., 
4096) = 4096
lseek(4, 20480, SEEK_SET)               = 20480
read(4, ",\0\373\17\301\17\274\17\202\17}\17(\17#\17\316\16\311"..., 
4096) = 4096
lseek(4, 28672, SEEK_SET)               = 28672
read(4, "(\0\373\17\276\17\271\17|\17w\17+\17&\17\332\16\324\16"..., 
4096) = 4096
lseek(4, 32768, SEEK_SET)               = 32768
read(4, "(\0\373\17\257\17\252\17^\17Y\17\36\17\31\17\336\16\325"..., 
4096) = 4096
lseek(4, 4096, SEEK_SET)                = 4096
read(4, "$\0\373\17\300\17\273\17\200\17{\17>\0179\17\374\16\367"..., 
4096) = 4096
lseek(4, 8192, SEEK_SET)                = 8192
read(4, " \0\373\17\276\17\271\17|\17w\17*\17%\17\330\16\322\16"..., 
4096) = 4096
lseek(4, 12288, SEEK_SET)               = 12288
read(4, " \0\374\17\260\17\254\17`\17\\\17!\17\35\17\342\16\335"..., 
4096) = 4096
close(4)                                = 0
stat("/etc/nsswitch.conf", {st_mode=02, st_size=12948042205102123, ...}) = 0
open("/etc/group", O_RDONLY)            = 4
fstat(4, {st_mode=S_IFBLK|S_ISUID|S_ISGID|S_ISVTX|0151, 
st_rdev=makedev(114, 1869545504), ...}) = 0
lseek(4, 0, SEEK_CUR)                   = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "# $FreeBSD: src/etc/group,v 1.32"..., 4096) = 513
close(4)                                = 0
stat("/etc/nsswitch.conf", {st_mode=02, st_size=12948042205102123, ...}) = 0
open("/etc/group", O_RDONLY)            = 4
fstat(4, {st_mode=S_IFBLK|S_ISUID|S_ISGID|S_ISVTX|0151, 
st_rdev=makedev(114, 1869545504), ...}) = 0
lseek(4, 0, SEEK_CUR)                   = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "# $FreeBSD: src/etc/group,v 1.32"..., 4096) = 513
close(4)                                = 0
__sysctl([825111086.808464928.858795830.540422191.842674738.808532531], 
6, NULL, [1635217952], NULL, 0) = 0
__sysctl([185279781.188693020.587867168.170134503.708471909.191641605], 
6, "\230\0\5\16\20\0\0\0C\211\0\0\1\0\377\177\6\0\6\16\2\0"..., 
[175402863], NULL, 0) = 0
getpid()                                = 5691 (ppid 5690)
gettimeofday({4294967295, 4294967295}, NULL) = 0
geteuid(0x3)                            = 0
getuid()                                = 0 (euid 0)
issetugid(0x3)                          = 0
getgid()                                = 0 (egid 0)
getegid(0x3)                            = 0
open("ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ", 
O_RDONLY) = 4
fstat(4, {st_mode=0177777, st_size=18446744073709551615, ...}) = 0
umask(033)                              = 022
getuid()                                = 0 (euid 0)
geteuid(0x80637f8)                      = 0
getegid(0x80637f8)                      = 0
open("transport.db", O_RDWR)            = -1 ENOENT (No such file or 
directory)
sigprocmask(SIG_BLOCK, ~[], [])         = 0
open("transport.db", O_RDWR|O_CREAT|O_TRUNC, 0644) = 5
fstat(5, {st_mode=0, st_size=0, ...})   = 0
fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
stat("transport.db", {st_mode=0, st_size=0, ...}) = 0
fstat(5, {st_mode=S_IFBLK|S_ISGID|0150, st_rdev=makedev(106, 134611144), 
...}) = 0
fcntl(5, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
fcntl(5, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
open("transport.db", O_RDWR)            = 6
flock(6, LOCK_EX)                       = 0
umask(022)                              = 033
read(4, "# TRANSPORT(5)                  "..., 4096) = 4096
read(4, "pecifies\n#        how or where t"..., 4096) = 4096
read(4, "   its subdomains to host gatewa"..., 4096) = 3913
read(4, "", 4096)                       = 0
lseek(5, 4096, SEEK_SET)                = 4096
write(5, "\2\0\376\17\350\17\336\17\350\17{\17>\0179\17\374\16\367"..., 
4096) = 4096
lseek(5, 0, SEEK_SET)                   = 0
write(5, "\364\r\360\r\244\r\240\rT\rO\r\0\r\373\f\254\f\247\fa\f"..., 
260) = 260
lseek(5, 12288, SEEK_SET)               = 12288
write(5, "\375\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 
4096) = 4096
lseek(5, 4096, SEEK_SET)                = 4096
write(5, "\2\0\376\17\350\17\336\17\350\17{\17>\0179\17\374\16\367"..., 
4096) = 4096
lseek(5, 0, SEEK_SET)                   = 0
write(5, "\364\r\360\r\244\r\240\rT\rO\r\0\r\373\f\254\f\247\fa\f"..., 
260) = 260
lseek(5, 12288, SEEK_SET)               = 12288
write(5, "\375\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 
4096) = 4096
close(5)                                = 0
close(6)                                = 0
sigprocmask(SIG_SETMASK, [], NULL)      = 0
close(4)                                = 0
exit(0)                                 = ?


More information about the freebsd-questions mailing list