[8043] in bugtraq

home help back first fref pref prev next nref lref last post

Re: tar "features"

daemon@ATHENA.MIT.EDU (Liviu Daia)
Mon Sep 28 01:08:09 1998

Mail-Followup-To: Kragen <kragen@DNACO.NET>, BUGTRAQ@netspace.org
Date: 	Sun, 27 Sep 1998 07:00:44 +0300
Reply-To: daia@stoilow.imar.ro
From: Liviu Daia <daia@STOILOW.IMAR.RO>
X-To:         Kragen <kragen@DNACO.NET>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <Pine.SUN.3.96.980926100005.1433E-100000@picard.dnaco.net>; from
              Kragen on Sat, Sep 26, 1998 at 10:05:12AM -0400

On 26 September 1998, Kragen <kragen@DNACO.NET> wrote:
[...]
> Or is ISLNK not portable?

    Good point, at least HP-UX, ConvexOS and UNIXware don't have
S_ISLNK.  But you can always do something like

        #ifndef S_ISLNK
        #define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK ? 1 : 0)
        #endif

    Regards,

    Liviu

--
Dr. Liviu Daia                   e-mail:   daia@stoilow.imar.ro
Institute of Mathematics         web page: http://www.imar.ro/~daia
of the Romanian Academy          PGP key:  finger daia@stoilow.imar.ro

home help back first fref pref prev next nref lref last post