develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [PATCH] [perl #18589] Add NFS warning, clarify touch example

Thread Previous | Thread Next
From:
Casey West
Date:
April 25, 2003 04:56
Subject:
Re: [PATCH] [perl #18589] Add NFS warning, clarify touch example
Message ID:
20030425120054.GQ34510@geeknest.com
It was Thursday, April 24, 2003 when Vincent Lefevre took the soap box, saying:
: Hi,
: 
: On Thu, Apr 24, 2003 at 19:41:27 -0000, Casey West wrote:
: > The following patch addresses two issues with this ticket: NFS time
: > sync warning, and clarity on the first touch example.  The third issue
: > has already been addressed (how to simulate touch on any system).
: 
: Thanks, but there's a spelling mistake in this patch:
: 
: > +B<Note:>  Under NFS C<touch> uses the time of the NFS server, not
: > +the time of the local machine.  If there is a time syncronization
:                                                       ^^^^^^^^^^^^^^
: synchronization

Indeed.  New patch below.


  Casey West

-- 
Saying that Windows95 is equal to Macintosh is like finding a potato
that looks like Jesus and believing you've witnessed the second
coming. 
 -- Guy Kawasaki

--- perl-current.orig/pod/perlfunc.pod  Mon Apr 14 16:47:02 2003
+++ perl-current/pod/perlfunc.pod       Fri Apr 25 07:55:20 2003
@@ -6133,12 +6133,16 @@
 files.  The first two elements of the list must be the NUMERICAL access
 and modification times, in that order.  Returns the number of files
 successfully changed.  The inode change time of each file is set
-to the current time.  This code has the same effect as the C<touch>
-command if the files already exist:
+to the current time.  For example, this code has the same effect as the
+Unix C<touch> command when the files I<already exist>.
 
     #!/usr/bin/perl
     $now = time;
     utime $now, $now, @ARGV;
+
+B<Note:>  Under NFS C<touch> uses the time of the NFS server, not
+the time of the local machine.  If there is a time synchronization
+problem, the NFS server and local machine will have different times.
 
 If the first two elements of the list are C<undef>, then the utime(2)
 function in the C library will be called with a null second argument.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About