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