Zsh Mailing List Archive
Messages sorted by:
Re: PATCH: tail-dropping in files module mkdir
- X-seq: zsh-workers 12559
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: tail-dropping in files module mkdir
- Date: Mon, 7 Aug 2000 14:04:45 -0400
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <1000805044825.ZM29238@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Sat, Aug 05, 2000 at 04:48:25AM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000804105323.B4820@xxxxxxxx> <1000804151753.ZM28846@xxxxxxxxxxxxxxxxxxxxxxx> <20000804113220.A5135@xxxxxxxx> <1000804161026.ZM28907@xxxxxxxxxxxxxxxxxxxxxxx> <20000804204021.A7925@xxxxxxxx> <1000804070216.ZM23696@xxxxxxxxxxxxxxxxxxxxxxx> <20000804091955.A4368@xxxxxxxx> <000804111549.ZM28988@xxxxxxxxxxxxxxxxxxxxxxx> <20000804205227.B7925@xxxxxxxx> <1000805044825.ZM29238@xxxxxxxxxxxxxxxxxxxxxxx>
> You misunderstand the problem. It isn't that we need the real path in
> order to determine the value of pathmax, it's this sort of silliness:
> If the length of the "blahblahblah" part approaches pathmax, you get an
> ENAMETOOLONG error even though you could chdir to each directory from
> left to right and eventually reach a legitimate file. Computing the
> realpath() in such a case won't change anything.
Again I am confused. Does _PC_PATH_MAX have any significance for
absolute paths? Can someone check POSIX?
I'm now of the opinion that the zpathmax check should be removed
from bin_mkdir, except for mkdir -p, in which case not only zpathmax
should be checked, but also _PC_NAME_MAX for each path element, including
> It would make sense that an absolute link from the root could be as long
> as the longest path on the filesystem to which the link refers, no?
Well, let's say you have a BIGFS mounted on on /usr, where the
largest filename is 65,535 characters long. / is a SMALLFS, which
has a maximum filename size of 255 characters, and the maximum
size of the destination of a symlink is 1023 characters. Therefore,
the absolute link from the root could not be as long as the longest
path on the referent filesystem. Obversely, the BIGFS can probably handle
symlinks to the root fs.
Messages sorted by: