Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4df546e
)
Fixed a couple problems in restore_cvsdir().
author
Wayne Davison
<wayned@samba.org>
Fri, 13 May 2005 00:25:25 +0000
(
00:25
+0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 13 May 2005 00:25:25 +0000
(
00:25
+0000)
verify-patches
patch
|
blob
|
blame
|
history
diff --git
a/verify-patches
b/verify-patches
index
8245bdf
..
28d37b9
100755
(executable)
--- a/
verify-patches
+++ b/
verify-patches
@@
-263,18
+263,20
@@
sub restore_cvsdir
return unless $has_dependencies;
$has_dependencies = 0;
+ chdir('cvsdir') or die $!;
foreach (glob('*.~[1-9]~'), glob('*/*.~[1-9]~')) {
my $fn;
($fn = $_) =~ s/\.~1~$//;
if ($fn eq $_) {
unlink($_);
- } elsif (-r $
fn
) {
- rename($_,
$fn);
+ } elsif (-r $
_
) {
+ rename($_, $fn);
} else {
unlink($_);
unlink($fn);
}
}
+ chdir('..') or die $!;
}
sub usage