1
0
mirror of https://github.com/ceph/ceph synced 2025-03-11 02:39:05 +00:00

be less anal during find output parsing

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1840 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sageweil 2007-09-13 04:04:12 +00:00
parent 56a852d7f8
commit 57031325ba

View File

@ -55,7 +55,7 @@ my $curdir;
while (<>) {
#print;
chomp;
my ($ino, $blah, $mode, $blah, $nlink, $uid, $gid, $size, $mtime, @path) = split(/ /,$_);
my ($ino, $blah, $mode, $nlink, $uid, $gid, $size, $mtime, @path) = split(/[ ]+/,$_);
my $file = join(' ',@path);
($file) = split(/ \-\> /, $file); # ignore symlink dest
my @bits = split(/\//, $file);