-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chuck,

On 1/20/15 6:10 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Subject: Re: FarmWarDeployer not checking watchDir
> 
>> I'm actually really surprised that File.list() returns a list of
>> files for the directory that does not have execute permissions.
> 
> That's per the POSIX standard: you only need read access on the 
> directory to see directory entries (which pretty much consist only
> of names and inode numbers), but you need execute access on the
> directory to actually reach the inodes those directory entries
> point to.

So you can get a list of names, but you can't get any other
information about the files, like anything returned by stat().

I tried every other tool I could think of (stat, ls, vi, less, etc.)
short of writing the program in C myself to see what I could see, and
everything gave me either an error (e.g. ls) or en empty listing (vi)
of that directory.

> And, of course, Windows knows nothing about this... (meaning the
> JRE has to fake it a bit).

I think the JRE uses honest-to-goodness execute permissions for
certain things on modern (read: NT) filesystems, but I think there are
some files that have implicit execute permission (like anything ending
in .com, .exe, .pif, .bat, .cmd, or maybe others as well).

> Seems a bit odd that a .jar or .war file would need execute
> access, though.

? Not looking for execute privs on the WAR... only the containing
directory.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUvuKIAAoJEBzwKT+lPKRY/+AP/RmAdEas/AiQT7cvgaJcUbIA
QRrbm05u7S9rVC0fSVLKikJplyxIcITBGkAwDL2QbmdbeykvWY1mMnyw0vQONBG0
Zv4zdxGlQ35PuLQCB/zYrTyuAH3GX5xtp7cHWoyxbOjFjP8psC4jUaHAEftqcNhY
kXvxn1FjwnGKJ89Ijwf6iNMVxS7suUV5fcYsI6RBhwYElmg1Mwub8iW3eO1n2FIp
VoIOLOYzUasfThfpBFczjh/PmbvO1s5F58zSS+4Hq5wFUVn7cBvJjXTOE33oYoYH
GP9KHOaKFiCKbxOLxmN40TG27zoJjM3lb0ptwzBZlyUKEnZ1Dd33y8v/wa3T29ah
JGHWaqHFCt/uGNGf9C3HRzJdomqsmTT9yNgnDpTf4lNUkd67N/Iea6UE4eKqfFFC
jlh5ZOnPftSaZNV4feNwYqpZyd2aqhHvbZvH/Bs17YOrSDUlE6MtqStVU4aBIKH4
iPXw7liHS1u0f/9UTpYbrWGrOFpwb1c/AD+SOd7s0cEqlFEtoB9G/Soj6jLLyzFe
/DdlUMHhKUsQyiexBBYTOUBJu9MBiyhN1uJbGV7jSj014MkExnkh8BsXQgbomQ2n
6PyG/aWlBeeY+VaSqfAxiP5r5HGO9aUPMd7fPE9O7geIw4WCFSDZyua7DXLIIlR+
Xz70XfscxWP8tT5NNakC
=/69Q
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to