summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Quinson <mquinson@debian.org>2005-02-24 12:12:28 +0000
committerMartin Quinson <mquinson@debian.org>2005-02-24 12:12:28 +0000
commitbac9ac82afd5cb82760aee83659c567970cd98a6 (patch)
treefddbf61d3098e2267441fb08543531fdc1834e83
parentc0e3fedb48ca32520cc58478c5e8d591ed2dabd7 (diff)
downloadquilt-bac9ac82afd5cb82760aee83659c567970cd98a6.tar.gz
- quilt add: Add check to ensure that no symlink will be added since we fail
to backup them properly (see #295913 in Debian).
-rw-r--r--quilt.changes6
-rw-r--r--quilt/add.in7
2 files changed, 13 insertions, 0 deletions
diff --git a/quilt.changes b/quilt.changes
index d4322ec..8072d37 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Feb 24 13:12:57 CET 2005 - mquinson@debian.org
+
+- quilt add: Add check to ensure that no symlink will be added since we fail
+ to backup them properly (see #295913 in Debian).
+
+-------------------------------------------------------------------
Fri Feb 18 11:01:57 CET 2005 - agruen@suse.de
- quilt add: Add check to ensure that no files below patches/
diff --git a/quilt/add.in b/quilt/add.in
index c605394..a2b8ab3 100644
--- a/quilt/add.in
+++ b/quilt/add.in
@@ -131,6 +131,13 @@ do
status=1
continue
fi
+
+ if [ -L $SUBDIR$file ]
+ then
+ printf $"Cannot add symbolic link %s\n" "$SUBDIR$file" >&2
+ status=1
+ continue
+ fi
if ! @LIB@/backup-files -b -s -L -B $QUILT_PC/$patch/ $SUBDIR$file
then