Subject: bin/37223: postinstall does not remove temporary directory
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 10/26/2007 13:20:01
>Number:         37223
>Category:       bin
>Synopsis:       postinstall does not remove temporary directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 26 13:20:00 +0000 2007
>Originator:     Martti Kuparinen
>Release:        NetBSD 4.99.34
>Organization:
>Environment:
System: NetBSD n39.mydomain.com 4.99.34 NetBSD 4.99.34 (GENERIC) #0: Fri Oct 26 13:32:51 EEST 2007  root@n39.mydomain.com:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

/usr/sbin/postinstall does not remove temporary directory.

>How-To-Repeat:

# rm -rf /tmp/_postinstall.*

# ls -ld /tmp/_postinstall.*
ls: /tmp/_postinstall.*: No such file or directory

# postinstall fix
Source directory: /usr/src
Target directory: /
bluetooth fix:
defaults fix:
envsys fix:
gid fix:
hosts fix:
iscsi fix:
makedev fix:
motd fix:
mtree fix:
named fix:
pam fix:
periodic fix:
pf fix:
postfix fix:
rc fix:
ssh fix:
wscons fix:
x11 fix:
uid fix:
varrwho fix:
obsolete fix:
postinstall fixes passed: bluetooth defaults envsys gid hosts iscsi makedev motd mtree named pam periodic pf postfix rc ssh wscons x11 uid varrwho obsolete
postinstall fixes failed:

# ls -ld /tmp/_postinstall.*
drwx------  2 root  wheel  120 Oct 26 14:54 /tmp/_postinstall.2963.0

# ls -lh /tmp/_postinstall.* 
total 31K
-rw-r--r--  1 root  wheel   28K Oct 26 14:53 MAKEDEV
-rw-r--r--  1 root  wheel  460B Oct 26 14:53 hosts
-rw-r--r--  1 root  wheel  2.5K Oct 26 14:53 sshdconf

>Fix: