From fa0e80560d8fc055c1d88997ce47ae01cfe3e8f6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 7 Feb 2009 22:38:35 +0000 Subject: [PATCH] In the one instance where we touch() and know that the file exists, use utime() to update the timestamp Signed-off-by: Frank Lichtenheld --- bin/extract_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/extract_files b/bin/extract_files index 49b489f..875b7de 100755 --- a/bin/extract_files +++ b/bin/extract_files @@ -235,7 +235,7 @@ sub to_update { if ($config_data->{structure} == PKGPOOL) { my $dir = "$target/".pkg_pool_directory( $pkg_data ); if (!$force && -d $dir && -f "$dir/log") { - touch("$dir/log") + (utime(undef,undef,"$dir/log") == 1) or do_warning( "touch of $dir/log failed" ); return 0; } else { -- 2.39.2