[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] tests/syslogd.sh and /tmp

From: Mats Erik Andersson
Subject: Re: [bug-inetutils] tests/syslogd.sh and /tmp
Date: Wed, 18 Jan 2012 23:42:55 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

onsdag den 18 januari 2012 klockan 16:36 skrev Alfred M. Szmidt detta:
> I am inclined to agree with both of you.  /tmp is from IEEE
> 1003.1-2001, but IEEE 1003.1-2004 and later recommend using $TMPDIR.
> So in that sense, NixOS is indeed broken, IEEE 1003.1-2001 is not that
> old, and more systems follow it that the 2004 or later editions.
> The part where I'm confused is why "cat $TMPDIR/FILE" (*) (or similar)
> does not work on NixOS, but "cd $TMPDIR; cat FILE" (**) does.  Is it
> because some disreprency between ARG_MAX and PATH_MAX?  I.e. when
> doing (*) you hit the ARG_MAX; but doing (**) you don't; even though
> in both cases the file name fits in PATH_MAX?

Let me remind all that the crucial limit here is

   sizeof (sockaddr_un.sun_path)

which is 108 (Glibc and Solaris) or 104 (BSD).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]