summaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-04-28 16:40:36 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-04-29 02:20:43 +0200
commitba67864c2a3f3fac0a711878ef369499b9c58499 (patch)
tree96e379834942efaf82b6e03d91db0d77f43ffa88 /bootstrap.conf
parentcd0ea8e786582a7e80c43114ccb877b122eb2a51 (diff)
downloadpatch-ba67864c2a3f3fac0a711878ef369499b9c58499.tar.gz
Set file attributes only in a single place
* src/util.h (enum file_attributes): New type. (set_file_attributes): New function. * src/util.c (set_file_attributes): Move the code for setting file attributes here from create_backup_copy() and make it usable from patch.c as well. Make it symlink safe. In addition, also preserve the file owner when permitted. (create_backup_copy): Use set_file_attributes(). * src/patch.c (main): Use set_file_attributes(). * bootstrap.conf: Use the gnulib lchmod module.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index b5c061f..6c07a9a 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -33,6 +33,7 @@ getopt-gnu
gettime
git-version-gen
hash
+lchmod
lstat
malloc
memchr