GLOB_DOOFFS
if (!(flags & GLOB_DOOFFS))
sftp_glob(conn, tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g);
(void)glob(tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g);