diff options
author | jingui.ren <jingui.ren@samsung.com> | 2018-03-22 16:18:06 +0800 |
---|---|---|
committer | jingui.ren <jingui.ren@samsung.com> | 2018-03-22 16:18:06 +0800 |
commit | ae16ecc5a4861676a53c932f332715f067934f73 (patch) | |
tree | 2f2df2e62b458972a409db8544926085b83af828 /createdirdeps | |
parent | 83050d1233afbd5417a586eefb39b6f8dd210bbe (diff) | |
download | build-ae16ecc5a4861676a53c932f332715f067934f73.tar.gz build-ae16ecc5a4861676a53c932f332715f067934f73.tar.bz2 build-ae16ecc5a4861676a53c932f332715f067934f73.zip |
Fix bugs when username including backslash
Change-Id: Ib489d11174f67acf04c6c622fc41c2243e596198
Diffstat (limited to 'createdirdeps')
-rwxr-xr-x | createdirdeps | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/createdirdeps b/createdirdeps index 49bf09e..c38a4dc 100755 --- a/createdirdeps +++ b/createdirdeps @@ -59,7 +59,7 @@ if (defined($oldfile) && open(F, '<', $oldfile)) { my %seen; for my $dir (@ARGV) { - my $cmd = "find $dir -follow -type f \\( -name \"*.rpm\" -o -name \"*.deb\" -o -name \"*.pkg.tar.gz\" -o -name \"*.pkg.tar.xz\" \\) -a ! -name \"*src.rpm\" -printf '\%T@/\%s/\%i \%p\\n'"; + my $cmd = "find '$dir' -follow -type f \\( -name \"*.rpm\" -o -name \"*.deb\" -o -name \"*.pkg.tar.gz\" -o -name \"*.pkg.tar.xz\" \\) -a ! -name \"*src.rpm\" -printf '\%T@/\%s/\%i \%p\\n'"; open(F, '-|', $cmd) or next; while (<F>) { chomp; |