Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 20:06:58 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        axl@iafrica.com, pantzer@ludd.luth.se
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: NIS with HPUX 10.20
Message-ID:  <199901280906.UAA27849@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> Why _not_ use -C? What is the point in replacing a file with the same file? 
>> install -C will replace the file if the new file is diffrent.
>
>Aaaaaaaah, thank you. I misread the manpage description of -C and didn't
>notice "and the files are the same"...
>
>Cleared up, head back on straight. :-)

This is not so clear :-).  -C always does a complete replacement of the
file, as does -c, but the man page bogusly claims that the target file
is overwritten.  The complete replacement is necessary to snap any links
(another undocumented feature).

Someday -C should avoid touching the file if possible, so that it
doesn't clobber the file's ctime and backups based on ctimes don't do
unnecessary work.  This is possible if none of the attributes except
the file times would change, and fairly easy to implement if the file
doesn't have any links.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901280906.UAA27849>