untainted symlink targets

This commit is contained in:
hjp 2006-11-30 13:55:53 +00:00
parent 76eb5e0b27
commit 1ad94f6e4f
2 changed files with 8 additions and 1 deletions

7
Notes
View File

@ -43,3 +43,10 @@ Same the next day: 3171 files transferred. 1h20min.
check filenames with non-ascii characters.
check gid bits.
Equality checking doesn't work if user is unknown on backup server:
-r--r--r-- 1 4294967294 users 1449 2004-12-01 15:44 2006-11-27T23.22.42/yoyo.hjp.at/home/camel/wrk/perl-5.8.8/util.h
-r--r--r-- 1 4294967294 users 1449 2004-12-01 15:44 2006-11-28T10.18.30/yoyo.hjp.at/home/camel/wrk/perl-5.8.8/util.h
should be one file with two links, not two files.

View File

@ -146,7 +146,7 @@ sub parse {
$f->{g} = unquote($f->{g});
$f->{acl} = unquote($f->{acl});
$f->{m} = $1 if $f->{m} =~ /^(\d+)$/;
$f->{lt} = unqote($f->{lt}) if defined $f->{lt};
$f->{lt} = unquote($1) if defined $f->{lt} && $f->{lt} =~ /(.*)/;
return $f;
}