From bac9ac82afd5cb82760aee83659c567970cd98a6 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 24 Feb 2005 12:12:28 +0000 Subject: - quilt add: Add check to ensure that no symlink will be added since we fail to backup them properly (see #295913 in Debian). --- quilt.changes | 6 ++++++ quilt/add.in | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/quilt.changes b/quilt.changes index d4322ec..8072d37 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 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 -- cgit