On 2007-04-08 09:28, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> Olivier Regnier wrote:
> The file has to exist that you're trying to modify, otherwise it'll give
> up :). Permissions issue?
> 
> Better to do that section may be:
> 
>      my $tmpsupfile;
>      my $supfile = "/etc/standard-supfile";
>      my $newhost = "cvsup.fr.freebsd.org";
> 
>      if (!defined($supfile) || !defined($newhost)) {
>          return undef;
>      }
> 
>      $tmpsupfile = new File::Temp();
>      die "$!" unless(defined($tmpsupfile);
>      open(SUP, "$supfile") or die "$!";

Ah, much better, thanks :)

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to