Hacker News new | ask | show | jobs
by inopinatus 1603 days ago
I very nearly got this ternary delight into FreeBSD src:

    if ((Lflag ? chown : lchown)(p->fts_accpath, s->st_uid, -1))
            (void)printf(" not modified: %s\n",
                strerror(errno));
which relies on the identical signature of chown(2) and lchown(2) syscalls.