* [Comm] rsync -- глюка?
@ 2004-03-30 22:47 Денис Смирнов
  2004-03-31  5:01 ` Sergey V. Golovin
  0 siblings, 1 reply; 7+ messages in thread
From: Денис Смирнов @ 2004-03-30 22:47 UTC (permalink / raw)
  To: community; +Cc: ldv
А это так и должно быть, что rsync при -C применяет шаблоны найденые в
.cvsignore не только к каталогу, который его содержит? Или я чего-то не
понимаю? Проявляется это при использовании ссылок. Вот пример теста:
#!/bin/sh
#rm -rf test test2
mkdir -p test/{1,2}
touch test/1/abc
touch test/1/bcd
echo abc > test/2/.cvsignore
ln -s 1 test/3
rsync -CLa test/ test2
ls test2/3/abc
ls test2/3/bcd
-- 
С уважением, Денис
http://freesource.info
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [Comm] rsync -- глюка?
  2004-03-30 22:47 [Comm] rsync -- глюка? Денис Смирнов
@ 2004-03-31  5:01 ` Sergey V. Golovin
  2004-03-31  5:58   ` [Comm] " Denis Smirnov
  0 siblings, 1 reply; 7+ messages in thread
From: Sergey V. Golovin @ 2004-03-31  5:01 UTC (permalink / raw)
  To: community
  Cc: Денис
	Смирнов,
	ldv
Здравствуйте!
* Денис Смирнов <mithraen@freesource.info> [31 Mar Wed  2:47]
> А это так и должно быть, что rsync при -C применяет шаблоны найденые в
> .cvsignore не только к каталогу, который его содержит? Или я чего-то не
Вообще-то, верно - не должны исключающие шаблоны действовать за пределами
каталога. Но:
> rsync -Ca test/ test2
Я попробовал так и все работает как должно.
Может баг, а может и фича :-)
-- 
Sergey Golovin
^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Comm] Re: rsync -- глюка?
  2004-03-31  5:01 ` Sergey V. Golovin
@ 2004-03-31  5:58   ` Denis Smirnov
  2004-03-31  7:32     ` Sergey V. Golovin
  0 siblings, 1 reply; 7+ messages in thread
From: Denis Smirnov @ 2004-03-31  5:58 UTC (permalink / raw)
  To: community; +Cc: ldv
On Wed, Mar 31, 2004 at 10:01:03AM +0500, Sergey V. Golovin wrote:
 SVG> * Денис Смирнов <mithraen@freesource.info> [31 Mar Wed  2:47]
 >> А это так и должно быть, что rsync при -C применяет шаблоны найденые в
 >> .cvsignore не только к каталогу, который его содержит? Или я чего-то не
 SVG> Вообще-то, верно - не должны исключающие шаблоны действовать за пределами
 SVG> каталога. Но:
 >> rsync -Ca test/ test2
 SVG> Я попробовал так и все работает как должно.
 SVG> Может баг, а может и фича :-)
Фича в том, что нечто в подкаталоге действует на каталог, который
копируется по ссылке?
-- 
С уважением, Денис
http://freesource.info
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [Comm] Re: rsync -- глюка?
  2004-03-31  5:58   ` [Comm] " Denis Smirnov
@ 2004-03-31  7:32     ` Sergey V. Golovin
  2004-03-31  9:47       ` Dmitry V. Levin
  0 siblings, 1 reply; 7+ messages in thread
From: Sergey V. Golovin @ 2004-03-31  7:32 UTC (permalink / raw)
  To: community; +Cc: Denis Smirnov, ldv
* Denis Smirnov <mithraen@freesource.info> [31 Mar Wed  9:58]
> Фича в том, что нечто в подкаталоге действует на каталог, который
> копируется по ссылке?
Баг уже известен - будет устранен в 2.6.1
-- 
Sergey Golovin
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [Comm] Re: rsync -- глюка?
  2004-03-31  7:32     ` Sergey V. Golovin
@ 2004-03-31  9:47       ` Dmitry V. Levin
  2004-03-31 12:11         ` Денис Смирнов
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry V. Levin @ 2004-03-31  9:47 UTC (permalink / raw)
  To: Sergey V. Golovin; +Cc: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
On Wed, Mar 31, 2004 at 12:32:34PM +0500, Sergey V. Golovin wrote:
> * Denis Smirnov <mithraen@freesource.info> [31 Mar Wed  9:58]
> > Фича в том, что нечто в подкаталоге действует на каталог, который
> > копируется по ссылке?
> 
> Баг уже известен - будет устранен в 2.6.1
Всё верно.
Сергей, спасибо за то, что ответили за меня.
На всякий случай прилагаю патч:
--- flist.c	13 Jan 2004 06:27:30 -0000	1.164
+++ flist.c	17 Jan 2004 01:16:49 -0000	1.165
@@ -942,7 +942,7 @@ static void send_directory(int f, struct
 	if (cvs_exclude) {
 		if (strlen(fname) + strlen(".cvsignore") <= MAXPATHLEN - 1) {
 			strcpy(p, ".cvsignore");
-			add_exclude_file(&exclude_list,fname,MISSING_OK,ADD_EXCLUDE);
+			add_exclude_file(&local_exclude_list,fname,MISSING_OK,ADD_EXCLUDE);
 		} else {
 			io_error |= IOERR_GENERAL;
 			rprintf(FINFO,
-- 
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Comm] Re: rsync -- глюка?
  2004-03-31  9:47       ` Dmitry V. Levin
@ 2004-03-31 12:11         ` Денис Смирнов
  2004-04-04 21:44           ` Dmitry V. Levin
  0 siblings, 1 reply; 7+ messages in thread
From: Денис Смирнов @ 2004-03-31 12:11 UTC (permalink / raw)
  To: ALT Linux general discussion list
On Wed, Mar 31, 2004 at 01:47:29PM +0400, Dmitry V. Levin wrote:
 DVL> На всякий случай прилагаю патч:
Спасибо. Когда ждать сборку без этой проблемы?
-- 
С уважением, Денис
http://freesource.info
^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [Comm] Re: rsync -- глюка?
  2004-03-31 12:11         ` Денис Смирнов
@ 2004-04-04 21:44           ` Dmitry V. Levin
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2004-04-04 21:44 UTC (permalink / raw)
  To: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
On Wed, Mar 31, 2004 at 04:11:29PM +0400, Денис Смирнов wrote:
> On Wed, Mar 31, 2004 at 01:47:29PM +0400, Dmitry V. Levin wrote:
> 
>  DVL> На всякий случай прилагаю патч:
> 
> Спасибо. Когда ждать сборку без этой проблемы?
1. Это вопрос скорее для списка рассылки sisyphus@, поскольку на errata
явно не тянет.
2. Я думаю, что новая версия (2.6.1) скоро выйдет, её я и планирую
собрать.
-- 
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply	[flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-04-04 21:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-30 22:47 [Comm] rsync -- глюка? Денис Смирнов
2004-03-31  5:01 ` Sergey V. Golovin
2004-03-31  5:58   ` [Comm] " Denis Smirnov
2004-03-31  7:32     ` Sergey V. Golovin
2004-03-31  9:47       ` Dmitry V. Levin
2004-03-31 12:11         ` Денис Смирнов
2004-04-04 21:44           ` Dmitry V. Levin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git