Page MenuHomeFreeBSD

D7452.diff
No OneTemporary

D7452.diff

Index: head/usr.bin/xinstall/xinstall.c
===================================================================
--- head/usr.bin/xinstall/xinstall.c
+++ head/usr.bin/xinstall/xinstall.c
@@ -536,7 +536,6 @@
if (verbose)
printf("install: link %s -> %s\n",
from_name, to_name);
- unlink(to_name);
ret = rename(tmpl, to_name);
/*
* If rename has posix semantics, then the temporary
@@ -580,8 +579,6 @@
if (target_sb->st_flags & NOCHANGEBITS)
(void)chflags(to_name, target_sb->st_flags &
~NOCHANGEBITS);
- unlink(to_name);
-
if (verbose)
printf("install: symlink %s -> %s\n",
from_name, to_name);

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 21, 3:19 AM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31884247
Default Alt Text
D7452.diff (653 B)

Event Timeline