Преглед изворни кода

dpkg-gensymbols: Use closedir instead of close for directory handles

Guillem Jover пре 13 година
родитељ
комит
00514322d1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scripts/dpkg-gensymbols.pl

+ 1 - 1
scripts/dpkg-gensymbols.pl

@@ -199,7 +199,7 @@ if (not scalar @files) {
 	    /(\.so\.|\.so$)/ && -f $_ &&
 	    Dpkg::Shlibs::Objdump::is_elf($_);
 	} map { "$libdir/$_" } readdir($libdir_dh);
-	close($libdir_dh);
+	closedir $libdir_dh;
     }
 }