Julian Scheid <[email protected]> writes:

> +      ;; Examine file-attributes cache to see if request can be
> +      ;; satisfied without remote operation.
> +      (or (tramp-check-cached-permissions localname ?x)
> +          (zerop (tramp-run-test "-x" filename))))))

This test could be optimized, checking for the sticky bit set for the
owner. Example:

arthur:~> chmod 04122 aaa; ll aaa
---s-w--w- 1 albinus albinus 0 2009-08-18 05:37 aaa
arthur:~> test -x aaa; echo $?
0
arthur:~> chmod 02212 aaa ; ll aaa
--w---s-w- 1 albinus albinus 0 2009-08-18 05:37 aaa
arthur:~> test -x aaa ; echo $?
1
arthur:~> chmod 01221 aaa ; ll aaa
--w--w---t 1 albinus albinus 0 2009-08-18 05:37 aaa
arthur:~> test -x aaa ; echo $?
1

Best regards, Michael.


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to