Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jan 2001 22:08:55 +0000
From:      Paul Richards <paul@originative.co.uk>
To:        Tony Finch <dot@dotat.at>
Cc:        Paul Richards <paul@freebsd-services.co.uk>, Dag-Erling Smorgrav <des@ofug.org>, Mark Murray <mark@grondar.za>, Paul Richards <paul@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/pkg_install/update pkg_update.pl
Message-ID:  <3A54F477.DCD11D4B@originative.co.uk>
References:  <xzp8zorla59.fsf@flood.ping.uio.no> <200101041509.f04F9kY06526@gratis.grondar.za> <xzp3dezl2gm.fsf@flood.ping.uio.no> <3A54A329.3A84087F@freebsd-services.co.uk> <20010104214946.W2140@hand.dotat.at>

next in thread | previous in thread | raw e-mail | index | archive | help
Tony Finch wrote:
> 
> Paul Richards <paul@freebsd-services.co.uk> wrote:
> >
> >sysopen() is not portable, it is a wrapper to the underlying OS open()
> >call and as such you have to know what the OS file modes are.
> 
> You can easily get that information by using POSIX.pm.

I could yes, but I could just open properly since that's a lot easier.

The mistake was using "<$file", what I should have done was use the list
version i.e.

open(HANDLE, "<", $file)

and then there wouldn't have any issues at all, though Mark makes a
valid point about taint checking.

Paul.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A54F477.DCD11D4B>