The whole logic only applies to files.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 11 00:33:26 UTC 2019 on sn-devel-184
continue;
}
- if (ask_sharemode) {
+ if (ask_sharemode && !S_ISDIR(smb_fname.st.st_ex_mode)) {
struct timespec write_time_ts;
struct file_id fileid;
}
}
- if (state->async_ask_sharemode) {
+ if (state->async_ask_sharemode &&
+ !S_ISDIR(smb_fname->st.st_ex_mode))
+ {
struct tevent_req *subreq = NULL;
char *buf = state->base_data + state->last_entry_off;