diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2003-05-20 11:23:42 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2003-05-20 11:23:42 +0000 |
commit | 0a1e5d20d44777454fca0af4a8ca1d5560ca9376 (patch) | |
tree | 988aa912693b903097daf087d54693ea5f0b550d | |
parent | 5e168d4885672ac7c2607aed9f29797a79d73bfa (diff) | |
download | quilt-0a1e5d20d44777454fca0af4a8ca1d5560ca9376.tar.gz |
Preserve permissions of files added with `quilt add'.
-rw-r--r-- | quilt.changes | 5 | ||||
-rw-r--r-- | quilt/add.in | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/quilt.changes b/quilt.changes index e1bf8f2..33aad68 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue May 20 13:22:18 CEST 2003 - agruen@suse.de + +- Preserve permissions of files added with `quilt add'. + +------------------------------------------------------------------- Sun May 18 15:23:03 CEST 2003 - agruen@suse.de - Do not add the whole /usr/share/locale directory to the RPM diff --git a/quilt/add.in b/quilt/add.in index ae22c56..5b1d932 100644 --- a/quilt/add.in +++ b/quilt/add.in @@ -115,7 +115,7 @@ do # now, create a copy to make sure nothing # happens to the original file. tmpfile=$(gen_tempfile $file) && - cp -f $file $tmpfile && + cp -fp $file $tmpfile && mv -f $tmpfile $file rm -f $tmpfile fi |