Do not perform install on existing directories
authorMatthew Jordan <mjordan@digium.com>
Tue, 12 Jun 2012 18:41:50 +0000 (18:41 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 12 Jun 2012 18:41:50 +0000 (18:41 +0000)
commit019010e611ad56871ed0ad436dc0b3eaf026f2d7
tree6eaa488b9fca3ddf780b00b1c27952249257bc04
parent6bd3eb4995e57e8a18fb428df17545f7ec3d86b6
Do not perform install on existing directories

If a directory already exists, performing a 'make install' will remove the
permissions associated with the current directory and replace them with the
permissions of the user executing the install.

This patch changes this behavior to only perform an install on the directory
if the directory does not exist.  Thus, if a user later changes the permissions
on that directory, those permissions will be preserved in subsequent installs.

Review: https://reviewboard.asterisk.org/r/1986

Review: https://reviewboard.asterisk.org/r/1864

(closes issue ASTERISK-19492)
Reported by: Karl Fife
Tested by: Paul Belanger, Tilghman Lesher
patches:
  ASTERISK-19492 by pabelanger
  (uploaded by mjordan)
........

Merged revisions 368830 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 368831 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Makefile