/bin/ls vs .dotted files

Matthew Dillon dillon at apollo.backplane.com
Thu Sep 13 17:41:17 PDT 2012


    I can't think of a good reason why f_listdot is set for root
    automatically,

    It goes all the way back to the original import in 2003 when we forked
    from FreeBSD.

    FreeBSD still turns it on automatically but added a -I option that
    turns it off.

       /* Root is -A automatically unless -I. */
        if (!f_listdot && getuid() == (uid_t)0 && !f_noautodot)
                f_listdot = 1;

    At the very least I will bring in this change.  But it may well be
    that we should also change the default to NOT be -A for root.

						-Matt



More information about the Users mailing list