*/
#define FSP_POSIX_FLAGS_OPEN 0x01
-#define FSP_POSIX_FLAGS_PATHNAMES 0x04
#define FSP_POSIX_FLAGS_ALL \
- (FSP_POSIX_FLAGS_OPEN | \
- FSP_POSIX_FLAGS_PATHNAMES)
+ FSP_POSIX_FLAGS_OPEN
struct vuid_cache_entry {
struct auth_session_info *session_info;
* to keep the numeric values consistent.
*/
-#define SMB_FILENAME_POSIX_PATH FSP_POSIX_FLAGS_PATHNAMES
+#define SMB_FILENAME_POSIX_PATH FSP_POSIX_FLAGS_OPEN
enum vfs_translate_direction {
vfs_translate_to_unix = 0,
int fchmod_acl_module_common(struct vfs_handle_struct *handle,
struct files_struct *fsp, mode_t mode)
{
- if (fsp->posix_flags & FSP_POSIX_FLAGS_PATHNAMES
+ if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN
|| fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH) {
/* Only allow this on POSIX opens. */
return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
return false;
}
- if (fsp->posix_flags & FSP_POSIX_FLAGS_PATHNAMES) {
+ if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) {
/* Always use filesystem for UNIX mtime query. */
return false;
}
* can check them separately.
*/
- if (fsp->posix_flags & FSP_POSIX_FLAGS_PATHNAMES) {
+ if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) {
/* POSIX - no stream component. */
orig_lcomp_path = talloc_strdup(ctx,
dst_original_lcomp);